Yii in the "script registration" is to use Yii method to the JS file and code register in, is the introduction of JS files.
$cs = Yii::app ()->getclientscript ();
Register JS file
$cs->registerscriptfile (' Js/amcharts/javascript/amcharts.js ', Cclientscript::P os_head);
$cs->registerscriptfile (' Js/amcharts/javascript/raphael.js ', Cclientscript::P os_head);
Register JS Code
$cs->registerscript (' F1 ', ' var chart; ');
$cs->registerscript (' F2 ', ' var newvalueaxis; ');
$cs->registerscript (' F3 ', ' var addaxis; ');
$cs->registerscript (' F4 ', ' var removeaxis; ');
$cs->registerscript (' F5 ', ' chart = new Amcharts.amserialchart (); ')
; $cs->registerscript (' F6 ', ' chart.pathtoimages = ' images/amcharts/'; ');
$cs->registerscript (' F7 ', ' Chart.addlistener ("dataupdated");
$cs->registerscript (' F9 ', ' chart.marginleft =; ');
$cs->registerscript (' F10 ', ' chart.marginright =; ');
......