Question:How to add external javascript in YII?
Answer Yii has a special class named CClientScript that can help include scripts, CSS, and other resources in the page. In order to include an external JS , you can use the following code:
Yii::app()->clientScript-> registerScriptFile('http://example.com/js/main.js);
+ Report
How to add external javascript in YII?