Im a newbie to yii and have been trying to add bootstrap and giiplus extension to yii.However after adding the extracted file to extensions folder and making changes in main
Download extension from here.
Paste all bootstrap extensions folders what you have download under extensions/bootstrap
Add before starting of array
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
Add under return array
'theme'=>'bootstrap', 'modules'=>array( 'gii'=>array( 'generatorPaths'=>array( 'bootstrap.gii', ), ), ),
Add in under components
'bootstrap'=>array(
'class'=>'bootstrap.components.Bootstrap',
),
Paste code in class
public function init() {
$this->registerAllCss();
$this->registerJs();
parent::init();
}
Paste the line under head tag
bootstrap->init();?>
http://www.cniska.net/yii-bootstrap/