Revision #4 has been created by sensorario on Sep 22, 2011, 7:52:12 AM with the memo:
Improve the wiki due to a comment suggestion
« previous (#3) next (#5) »
widgets, javasctipt, tutorial, assets, hack
[...]Yii::app()->getClientScript()->registerScript('_', $script, CClientScript::POS_HEAD);
foreach ($scripts as $file)
Now, in your script1.js, you can use the variable assetUrl. For example, if you do alert(assetUrl); you'll see the path of this assets, ıe. '/assets/234hn43/'.