Exemplo n.º 1
0
 /**
  * Initializes the widget
  */
 public function init()
 {
     Foundation::registerCoreCss();
     Foundation::registerCoreScripts(false, !YII_DEBUG, \CClientScript::POS_HEAD);
     $this->registerAssets();
 }
Exemplo n.º 2
0
 /**
  * Registers the needed CSS file.
  * @param string $url the CSS URL. If null, a default CSS URL will be used.
  */
 public static function registerCssFile($url = null)
 {
     if ($url !== null) {
         \Yii::app()->getClientScript()->registerCssFile($url);
     } else {
         Foundation::registerCoreCss();
     }
 }