缺少加载插件 [英] Missing Load plugin
本文介绍了缺少加载插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将一些代码从1.3更改为2.1之后。发生一些错误。这是错误:
缺少插件
错误:应用程序正在尝试从论坛插件加载一个文件
错误:确保您的插件论坛位于app\Plugin目录中并已加载
<?php
CakePlugin :: load('forums');
加载所有插件:如果您希望一次加载所有插件,请在您的app\Config\bootstrap.php文件中使用以下行
CakePlugin :: loadAll ();
注意:如果要自定义此错误消息,请创建app\View\Errors\missing_plugin.ctp。有人,请帮助我吗?
$ b $ p < >解决方案我也面临同样的问题在蛋糕2+。这个问题是
CakePlugin :: load('DebugKit');
已添加到bootstrap.php文件中,当我添加此行
CakePlugin :: load('Cooltheme');
第一个加载,第二个省略。所以为了解决这个问题,我只是删除第二个,修改第一个如下
CakePlugin :: load ','Cooltheme'));
那么它对我有用,可能对他人有用。
After I change some of the code from 1.3 to 2.1. Some error occur. This is the error:
Missing Plugin
Error: The application is trying to load a file from the forums plugin
Error: Make sure your plugin forums is in the app\Plugin directory and was loaded
<?php
CakePlugin::load('forums');
Loading all plugins: If you wish to load all plugins at once, use the following line in your app\Config\bootstrap.php file
CakePlugin::loadAll();
Notice: If you want to customize this error message, create app\View\Errors\missing_plugin.ctp.
Somebody, please help me?
解决方案 I was also facing the same problem in cake 2+. The problem in this was
CakePlugin::load( 'DebugKit');
was already added in bootstrap.php file and when I added this line
CakePlugin::load( 'Cooltheme');
The first was loaded and second was omitted. So to solve this problem I simply removed second one and modified the first one as below
CakePlugin::load( array('DebugKit','Cooltheme'));
Then it works for me, may be heplfull to others.
这篇关于缺少加载插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文