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
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
If you want to register a css file for a special controller, then you can do it in it’s init() method:
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