How do i include external file

Hi all,

May i know how do i include external file? For example i have upload all my js script and css to s3, how do i include the file to my Yii? Got any example link for me to reference?




$cs=Yii::app()->getClientScript();

$cs->registerCssFile(Yii::app()->getAssetManager()->publish('path/to/css'));

$cs->registerScriptFile(Yii::app()->getAssetManager()->publish('path/to/js'));

$cs->registerScript('id', 'your js here');



check all class reference

http://www.yiiframework.com/doc/api/1.1/CClientScript

Thanks