Who can give me a simple example how to use cclientScript to append js script on head
Who can give me a simple example how to use cclientScript to append js script on head
In some class/action:
$jsFile = 'somescript.js';
$cs=Yii::app()->getClientScript();
$cs->registerScriptFile($jsFile, CClientScript::POS_HEAD);
thank you