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 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/BakeShell.php
Link: http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
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
get the option parser. -
main() public
Override main() to handle action -
startup() public
Assign $this->connection to the active task if a connection param is set.