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
Laravelframework, theartisancomponent 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 modelif you have no tables in your database
Note : If you
bake allcomponents, you will getControllerswith pre-definedCRUDactions.