Let one specify a custom assets folder
I use custom Bootstrap and Bootstrap responsive css files (with for instance 24 columns of 30px+10px for more granularity). I need to overwrite the standard boostrap css files provided by yii-bootstrap. Two possibilities: - overwrite css files in bootstrap.assets.css directory or - add my own assets and change the configuration. Because I'm very conservative, I choose the second solution. So I added bootstrap.project_name.assets folder wich is an exact copy of the bootstrap.assets folder. Then I've overwritten both bootstrap.css and bootstrap-responsive.css files with my custom builds. In my application configuration file, I have added the following line
Yii::setPathOfAlias('bootstrap.assets', Yii::getPathOfAlias('bootstrap') . '/anthropy/assets');
My idea is that it could be interesting to have a bootstrap extension option that would let one specify an alternate assets folder where, if files are found, they would overwrite the standard files distributed in the bootstrap extension.
'components'=>array( 'bootstrap'=>array( 'class'=>'lib.bootstrap.components.Bootstrap', 'responsiveCss' => true, 'assets' =>'lib.bootstrap.project_name.assets' ), ),
That requires to update getAssetsUrl() and register*() methods