I'm trying do to the following in the init function of my module:
Yii::app()->clientScript->registerCssFile($strAsset.DIRECTORY_SEPARATOR.'module.css');
but I get the following error:
( ! ) Fatal error: Call to a member function recordCachingAction() on a non-object in /var/www/kittner.4selected.studio/vhost/framework/web/CClientScript.php on line 379
What am I doing wrong?
Seems like the css file is published to the asset folder, but I couldn't register it in the init function.