我正在尝试在我的应用程序中为我的插件烘焙模型、 Controller 和 View :admin。我正在使用 Windows 7。烘焙在烘焙应用程序和应用程序内工作。
这就是我正在做的:
这是我的插件所在的文件夹:C:\wamp\www\propharm\app\Plugin
我从控制台得到了这个回应。
Create the directory structure, AppModel and AppController classes for a
new plugin. Can create plugins in any of your bootstrapped plugin paths.
Usage:
cake bake plugin [-h] [-v] [-q] [<name>]
Options:
--help, -h Display this help.
--verbose, -v Enable verbose output.
--quiet, -q Enable quiet output.
Arguments:
name CamelCased name of the plugin to create.
(optional)
我试过这个:
在 bootrap.php 中
CakePlugin::load('Admin');
它仍然无法正常工作。如果有人知道我做错了什么,请帮忙。谢谢。
路易斯
最佳答案
1)烘焙你的插件:
cake bake plugin PluginNameInCamelCase
2)烘烤其他所有东西:
cake bake controller ControllerName --plugin PluginNameInCamelCase
有关烘焙插件的更多文档,请参阅此页面:Creating Your Own Plugins with CakePHP
关于cakephp-2.1 - CakePHP 2.2.2 烘焙插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12280756/