Editing Templates, etc. for Bake in CakePHP 3 & 4

Editing Templates, etc. for Bake in CakePHP 3 & 4

When you want to customize the stuff CakePHP bakes for you, it's easy.  Here is where you need to navigate.

CakePHP4: Edit the templates used by Cake Bake by navigating to to these folders:

\project\vendor\cakephp\bake\

Templates for add, edit, view:
- \templates\bake\element\form.twig

Template for index:
- \templates\bake\Template\index.twig - index

 

CakePHP3: Editing Templates, controllers, etc. to be used in BAKE by navigating to the following:

\project\vendor\cakephp\bake\src\
- \Template
- \Model
- \Controller

Note: this allows you to edit the "content" area (e.g. the entire page, minus your layout), go to \src\Element\form.ctp

vendor\cakephp\bake\src\Template\Bake\Element\form.twig

 

Share this Post