Пример #1
0
 public function registerScripts()
 {
     // Get the url to the module assets
     //$assetsUrl1 = Lnt::getAssets('webroot.js.bxSlider', true);
     $assetsUrl2 = Lnt::getAssets('webroot.js.colorbox', true);
     $assetsUrl3 = Lnt::getAssets('webroot.js.jcarousel', true);
     // Register the necessary scripts
     /**
      * @var $cs CClientScript;
      */
     $cs = Yii::app()->getClientScript();
     $cs->registerCoreScript('jquery');
     /*$cs->registerScriptFile($assetsUrl1 . '/jquery.bxSlider.min.js');
       $cs->registerCssFile($assetsUrl1 . '/bxslider.css');*/
     $cs->registerScriptFile($assetsUrl2 . '/jquery.colorbox-min.js');
     $cs->registerCssFile($assetsUrl2 . '/colorbox.css');
     $cs->registerScriptFile($assetsUrl3 . '/jquery.jcarousel.min.js');
     $cs->registerCssFile($assetsUrl3 . '/skins/tango/skin.css');
     $cs->registerScript('slide_', $this->getScriptCode());
 }