×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: fatelord
Added: May 21, 2014 12:04 PM
Views: 21
Tags: no tags
include css or js in yii
  1. Yii::app()->getClientScript()->registerCoreScript('jquery.ui');
  2. $baseUrl = Yii::app()->baseUrl;
  3. $cs = Yii::app()->getClientScript();
  4. $cs->registerScriptFile($baseUrl . '/slideSwitch/jquery.switchButton.js');
  5. $cs->registerScriptFile($baseUrl . '/slideSwitch/slideToggle.js');
  6. //$cs->registerCssFile($baseUrl . '/css/yourcss.css');