Posted By

mathsonic on 10/18/11


Tagged

Yii


Versions (?)

Include CSS,javascript file in Yii


 / Published in: PHP
 

  1. $baseUrl = Yii::app()->baseUrl;
  2. $cs = Yii::app()->getClientScript();
  3. $cs->registerScriptFile($baseUrl.'/js/yourscript.js');
  4. $cs->registerCssFile($baseUrl.'/css/yourcss.css');

Report this snippet  

You need to login to post a comment.