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: https://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/BakeShell.php
Link: https://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/BakeShell.php
Properties summary
-
$connection
publicThe connection being used.string
-
$tasks
publicContains tasks to load and instantiatearray
Method Summary
- all() publicQuickly bake the MVC
- getOptionParser() publicGets the option parser instance and configures it.
- main() publicOverride main() to handle action
- startup() publicAssign $this->connection to the active task if a connection param is set.
Method Detail
getOptionParser()source public
getOptionParser( )
Gets the option parser instance and configures it.
Returns
ConsoleOptionParser
startup()source public
startup( )
Assign $this->connection to the active task if a connection param is set.
Properties detail
$taskssource
public array
Contains tasks to load and instantiate
array('Project', 'DbConfig', 'Model', 'Controller', 'View', 'Plugin', 'Fixture', 'Test')
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/class-BakeShell.html