Class BakeShell
Command-line code generation utility to automate programmer chores.
Bake is CakePHP's code generation script, which can help you kickstart application development by writing fully functional skeleton controllers, models, and views. Going further, Bake can also write Unit Tests for you.
- AppShell
- BakeShell
Package: Cake\Console\Command
Link: http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/BakeShell.php
Link: http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/BakeShell.php
Properties summary
-
$connection
publicstring
The connection being used. -
$tasks
publicarray
Contains tasks to load and instantiate
Method Summary
-
all() public
Quickly bake the MVC -
getOptionParser() public
Gets the option parser instance and configures it. -
main() public
Override main() to handle action -
startup() public
Assign $this->connection to the active task if a connection param is set.