CakePHP 3.x has the ability to bake
controllers
, models
, views
and other framework defined objects.
Note : If you have had some experience with the
Laravel
framework, theartisan
component is similar tobake
.
The bake
application is located in bin
folder; the following are some of the available commands:
bin/cake bake shell %shellName%
- to bake ShellClassbin/cake bake controller %controllerName%
- to bake Controller Classbin/cake bake model %modelName%
- to bake Model + Entity Classbin/cake bake view %viewName%
- to bake View templatebin/cake bake all %className%
- to bake Controller, Model + Entity, View for developer.Note : You will not be able to
bake model
if you have no tables in your database
Note : If you
bake all
components, you will getControllers
with pre-definedCRUD
actions.