Who can give me a simple example how to use cclientScript to append js script on head
Page 1 of 1
How to use CClientScript
#2
Posted 23 June 2010 - 11:05 PM
In some class/action:
$jsFile = 'somescript.js'; $cs=Yii::app()->getClientScript(); $cs->registerScriptFile($jsFile, CClientScript::POS_HEAD);
#3
Posted 23 June 2010 - 11:50 PM
drech, on 23 June 2010 - 11:05 PM, said:
In some class/action:
$jsFile = 'somescript.js'; $cs=Yii::app()->getClientScript(); $cs->registerScriptFile($jsFile, CClientScript::POS_HEAD);
thank you
Man's grasp exceeds his imagination
Share this topic:
Page 1 of 1

Help












