Dear all,
please could anybody advice me, how to pre-define own page template that would be used later as a template for pages generated using “cake bake …” commands?
It must be pretty simple but I can not find corresponding pages in Cookbook …
Thank you very much!
See Extending Bake
But if you want to do something new, you can create a command that extends from BakeCommand or SimpleBakeCommand. Bake will detect it automatically.
Examples:
BakeFixtureFactory from cakephp-fixture-factories (and template)
SchemaSave from cakephp-schema (and template)