我正在使用David Persson的Media插件作爲CakePHP(https://github.com/davidpersson/media)。我使用Cakephp 2.0.x,並將媒體文件夾放入插件中。我的問題是,出現錯誤消息,它說明有一個缺少的插件。David Persson在CakePHP 2.0.x中的媒體插件
Error: The application is trying to load a file from the Media plugin
Error: Make sure your plugin Media is in the app\Plugin directory and was loaded
<?php
CakePlugin::load('Media');
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();
順便說一句,我下載從GitHub的頁面davidpersson拉鍊(這是使用1.3.x版做的),我想在2.0.x的版本使用。我也改變了類的名稱,而不是使用var(從1.3.x),我已經爲控制器和模型添加了public而不是var。爲了在CakePHP 2.0.x中使用這個插件,需要考慮什麼?謝謝
我忘了說謝謝。也許我有空閒時就試試這個。 – bowmeow 2012-10-05 08:10:34
好的,你應該接受這個答案,以便其他人知道媒體插件爲什麼不支持2.x.另外,我有一個2.1,fyi的工作。 – jeremyharris 2012-10-08 14:09:13