Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 598 Bytes

cakephp.md

File metadata and controls

30 lines (25 loc) · 598 Bytes

CakePHP

Create a CakePHP Project

composer create-project --prefer-dist cakephp/app:^3.9 my_app_name

Create a controller for a table called users

bin/cake bake controller Users

Create a model (and entity) for a table called users

bin/cake bake model Users

Create the default template files for a table (add/edit/view/index)

bin/cake bake template Users

Bake add/edit/view/index using one command

bin/cake bake all Users

Bake just the index template file

bin/cake bake template Users index