2012-03-12 57 views
0

我已經將我的cakephp從1.3升級到2.0。我已經做了一些改變。 我仍然有這個錯誤。Cakephp Missing Plugin

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'); 

有人可以幫我嗎?

+0

DUPLICATE http://stackoverflow.com/questions/9661218/missing-load-plugin – mark 2012-03-12 09:02:22

回答

0

嘗試

CakePlugin::load('Forums') 
+0

我的已經試圖把這個代碼,但沒有發生。 – apishcrazy 2012-03-13 02:14:06

+0

您需要應用2.0命名約定。這意味着該插件的文件夾已經是'APP/Plugin/Forums'(注意大寫字母F) – mark 2012-03-13 03:58:25

0

添加這些行應用程序\配置\ bootstrap.php中文件

CakePlugin::loadAll(array('Forums', 
    array('bootstrap' => true, 'routes' => true), 
)); 
+0

我試着把這段代碼放進去,但沒有任何事情發生。 – apishcrazy 2012-03-13 02:14:35

+0

我是否需要重命名文件夾論壇或論壇?像在第一個字母大寫字母? – apishcrazy 2012-03-13 02:47:17