Hi,
how can i use a new css for an application controller views?
I saw that in the css directory there are some css files but i think they are application related...
Thanks,
Riccardo
Page 1 of 1
modify css
#2
Posted 17 March 2010 - 05:34 AM
If you want to register a css file for a special controller, then you can do it in it's init() method:
But you can also modify all files in the css directory. That is what they are for
public function init()
{
parent::init();
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/css/my.css');
}
But you can also modify all files in the css directory. That is what they are for
Share this topic:
Page 1 of 1

Help












