CakePHP-Bootstrap-Templates
CakePHP-Bootstrap-Templates copied to clipboard
what is the command to use this template?
I searched a lot, but couldn't figure out a way to use the template. I use the following command:
cake bake view
I follow the instructions, but there's no prompt for choosing which template to use. The view files produced by the bake script are not affected by this template.
It appears the latest CakePHP versions are a little different than what I was expecting. Instead of naming the template folder "default", name it "bootstrap". Then when you run bake, it will promp you for which templates to use. So your directory structure would be some like this
Cake/app/console/Templates/bootstrap/actions <- copy from Cake/Console/Templates/default Cake/app/console/Templates/bootstrap/classes <- copy from Cake/Console/Templates/default Cake/app/console/Templates/bootstrap/views <- bootstrap template files go here
Hope that helps
bake doesn't prompt for which template to use when baking models, controllers or views in an existing application. but it may prompt when creating a new project.