2013-11-27 30 views
1

對不起真的是新的yii,但我在哪裏把yii-booster 2.0文件?yii-booster設置給我的錯誤

我試過把所有文件放入擴展名/引導文件夾

我然後編輯的config/main.php,並將此

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

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

'theme'=>'bootstrap', 

在那裏我有主題主題/引導我從m拿過的 Ÿ以前安裝的http://www.cniska.net/yii-bootstrap/

但我從你http://www.cniska.net/yii-bootstrap/

得到了主題得到這個錯誤

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

回答

2

嘗試主題/引導/視圖/佈局/ main.php刪除此

Yii::app()->bootstrap->register();