如何使用cake bake all命令创建cakephp 2插件?

时间:2016-04-02 14:41:34

标签: php cakephp plugins console

我尝试按顺序执行以下代码来创建我的插件:

cake bake model all -p MyPlugin  // working 

cake bake controller all -p MyPlugin // not working
No controllers were baked, Model need to exist before Controller can be baked.


cake bake view all -p MyPlugin // not working
No error and no views are created.

我该如何解决这个问题?

我正在使用cakephp 2.6,有四个表帖子,类别,标签,posts_tags。

0 个答案:

没有答案