Esempio n. 1
0
 /**
  *
  * @param $tpl
  * @param array $js
  * @param array $css
  */
 public function __construct($tpl, array $js, array $css, $minify = false)
 {
     //We do not call addJs/addCss here, as we want the files
     //coming from the controllers to be loaded first
     static::$js = array_merge($js, static::$js);
     static::$css = array_merge($css, static::$css);
     $this->minify = $minify;
     parent::__construct($tpl);
 }
Esempio n. 2
0
 public function __construct($tpl, array $cacheAttrs = array())
 {
     parent::__construct($tpl);
     $this->init($cacheAttrs);
 }