【问题标题】:Cakephp Media Plugin ProblemCakephp 媒体插件问题
【发布时间】:2011-07-07 11:29:56
【问题描述】:

我正在尝试使用媒体插件 (http://www.ohloh.net/p/cakephp-media)

我将媒体文件夹内容放在了app/plugins/media中

然后在 app/config/ 文件夹的 bootstrap.php 中添加以下代码。

Configure::load('media.core');

现在,当我运行任何控制器和任何操作时,都会出现以下错误。

Configure::load() - no variable $config found in core.php [CORE\cake\libs\configure.php, line 266]

我使用的是 Cakephp 1.3.7

【问题讨论】:

    标签: cakephp plugins cakephp-1.3


    【解决方案1】:

    使用 cake 加载配置文件 Configure::load() 要求配置位于名为 $config 的变量中

    例如

    <?php 
    $config['Meh'] = array('foo' => 'bar');
    ?>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-05
      • 1970-01-01
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多