Overlapped Original Css Files With Yii-Bootstrap Css Files

Hi friends,

After adding Yii-Bootstrap extension to my project, Yii-Bootstrap CSS files overlapped my original CSS files.

How can I preferred the original CSS files over than Yii-Bootstrap CSS files?

Hi msoa

in your config main.php set coreCss to false

 'bootstrap' => array(

        'class' => 'ext.bootstrap.components.Bootstrap',

        'coreCss' => false,


Peace upon you dear friend

Property "Bootstrap.coreCss" is not defined.	

Hi again msoa

I tested in my project and it works! which version you are using ?

please post also the link

Thanks for your vote :)

help link

Thanks dear friend

I’m using bootstrap-2.1.0.r355

When dropped following line from //layouts/main.php

<?php Yii::app()->bootstrap->register(); ?>

this error:

Property "Bootstrap.coreCss" is not defined. 

Don’t appear.



		 'bootstrap' => array(

				'class' => 'ext.bootstrap.components.Bootstrap',

				'coreCss' => false,



Threre are Bootstrap and Booster extensions

I use Booster that has this attribute, so maybe you should test it too


I install yiibooster extension. Know when i set

coreCss => false

the widgets are without style. and when i set

coreCss => true

widgets are correct but my project css files overlapped with bootstrap css files. i want only widgets use from own css files. is there any way?

Hi again.

If I understood well, you want yiibooster css for specific widget but not for entire template.

I don’t know if you could be set it for specific widgets

The way to do that for a long time is by using in my css rules two techniques

  1. giving more specific rules on css selector (more specific than booster)

  2. add !important; in css rules

  3. combine 2 and 3


Yes it is. Very thanks for today helps :)


Thanks to support us by voting!

I think it is polite to say anyone thanks in this way :)