I am coding in Yii.
I registered the main.css file in the main.php layout file as follows:
Yii::app()->clientScript->registerCssFile($this->assetsBase.'/css/main.css');
Now this script is registered on all pages. However, let's say I do not want the script to register on a specific page.
I know that using:
Yii::app()->clientScript->reset();
will delete all CSS files, however I want only a few CSS files to be unregistered.
Is there any way to do this?
css php yii
Sankalp singha
source share