【问题标题】:yii-booster set up giving me errorsyii-booster 设置给我错误
【发布时间】:2013-11-27 05:56:25
【问题描述】:

对不起,我是 yii 的新手,但我应该把 yii-booster 2.0 文件放在哪里?

我尝试将所有文​​件放入 extensions/bootstrap 文件夹。

然后我编辑了 config/main.php 并添加了这个

'bootstrap' => array(
            'class' => 'bootstrap.components.Bootstrap',
),

'preload'=>array(
          'log',
         // 'fontawesome',
         'bootstrap',
    ),

'theme'=>'bootstrap',

我在 themes/bootstrap 中有一个主题,该主题取自我之前安装的 http://www.cniska.net/yii-bootstrap/

但我收到此错误

Bootstrap and its behaviors do not have a method or closure named "register".

【问题讨论】:

    标签: yii yii-extensions


    【解决方案1】:

    来自http://www.cniska.net/yii-bootstrap/的主题

    尝试在 themes/bootstrap/views/layout/main.php

    中删除它
    Yii::app()->bootstrap->register();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-22
      • 1970-01-01
      • 2015-02-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多