How can I use specific css files for just specific pages like about us page should have aboutus.css file.
Is there a function or implementation in yii
How can I use specific css files for just specific pages like about us page should have aboutus.css file.
Is there a function or implementation in yii
Try the following:
$cssUrl = Yii::app()->baseUrl.'/'.$this->getAction()->getId().'.css';
Yii::app()->clientScript->registerCssFile($cssUrl);