Yii 1.0 use assets in extensions folder
{Code}
$assetDir = dirname(__FILE__).'/assets'; $cs = Yii::app()->getClientScript(); //publishing and registering javascript files $cs->registerScriptFile( Yii::app()->assetManager->publish($assetDir.'/yii_blog.js'), CClientScript::POS_END );
will use hash($assetDir.'yii_blog.js'); to generate folder name inside application's asset folder.
Leave Comment