Yii Client Script Tutorials

Yii Client Script

Here I explained How to add user javascript into yii using clientscript->registerScript function with example.Create Client ScriptClient Script With Button Action Client Script For User Ajax Request Create Client Script <?php /** * Create Client Script **/ Yii::app()->clientScript->registerScript("newdownloadbtnjs",' /** enter your js code here **/ '); ?> Client Script With Button Action <?php /** * Client Script With button action **/ Yii::app()->clientScript->registerScript("newdownloadbtnjs",' /** enter your js code here **/ $("#buttonid").live("click",function(){ […]... Read More »