2

Trying to bake my controllers from a custom template.

As per the cookbook, I've baked a new plugin, and created the following directories:

  • plugins/MyTemplate/src/Template
  • plugins/MyTemplate/src/Template/Bake
  • plugins/MyTemplate/src/Template/Bake/Controller
  • plugins/MyTemplate/src/Template/Bake/View

In Bake/View I've created the basic CRUD templates, and they're baking fine. In Bake/Controller I've created a controller.twig file. It appears to be ignored. What am I missing?

Greg Schmidt
  • 5,010
  • 2
  • 14
  • 35
Jonline
  • 1,677
  • 2
  • 22
  • 53
  • 1
    What specific version of CakePHP and Bake are you using? Support for Twig templates was added in Bake 1.5.0, which requires CakePHP 3.5 or higher, but you've tagged the post with cakephp-3.0. – Greg Schmidt Feb 27 '19 at 20:53
  • I'm using 3.7... there was no tag for this specific version – Jonline Feb 28 '19 at 18:45

0 Answers0