/** * Initializes the widget */ public function init() { Foundation::registerCoreCss(); Foundation::registerCoreScripts(false, !YII_DEBUG, \CClientScript::POS_HEAD); $this->registerAssets(); }
/** * 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(); } }