I'm having problems baking controllers from the console WITH the admin. Whatever I do it just generates the simple actions, no admin_ version...
Tried: cake bake controller all cake bake controller all public admin cake ba开发者_如何学Cke controller all admin
I think I'm missing something that is very obvious :)
Just if anyone else is looking for this: For CakePHP 3.0-RC1 (and maybe the release version later) the command for baking admin controllers is:
bin\cake bake controller all --prefix admin
You can also substitude "all" with your controller name. And to bake all corresponding views:
bin\cake bake view all --prefix admin
Usually adding an 'admin' keyword will suffice.
cake bake controller <controllername> admin
cake bake all admin
What version of CakePHP are you using? And your post has all trials in a single line.. It would help if you can type in separate lines the commands you tried.
精彩评论