Css Sequence in 'bootstrap' extension

I am trying to implement the Bootstrap CSS throughout the webapp.

So, i hv changed the main.php layout to remove all the link statements of the Blueprint CSS framework and just keep the Bootstrap CSS link threw the following line (as mentioned in the extension):

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

And then i have custom css files for each page, being loaded in the individual view files after the pageTitle statement.

But no matter where i place the registerCoreCss statement in main.php, the bootstrap css file is getting loaded only after the custom css file. I know it can be done by setting the above statement in the controller init() function or maybe in the module init() function.

But is there a way of setting it in the main.php file, so that it need not be set for every controller or module?

Try giving the css code

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

before the


and give your coustom css after the


in the "protected/views/layout/main.php" file

Works! Thx