CakePHP-Bootstrap-Templates icon indicating copy to clipboard operation
CakePHP-Bootstrap-Templates copied to clipboard

what is the command to use this template?

Open EmreErdogan opened this issue 12 years ago • 2 comments

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.

EmreErdogan avatar Jan 19 '13 19:01 EmreErdogan

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

vz28bh avatar Jan 21 '13 14:01 vz28bh

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.

EmreErdogan avatar Jan 21 '13 16:01 EmreErdogan