Пример #1
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     if (!$this->hasModel() && $this->name === null) {
         throw new InvalidConfigException("Either 'name' or 'model' and 'attribute' properties must be specified.");
     }
     parent::init();
 }
Пример #2
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     //echo $this->renderToggleButton() . "\n";
     echo Html::beginTag('div', $this->options) . "\n";
     echo $this->renderHeader() . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
Пример #3
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->options = ArrayHelper::merge($this->options, array('data-role' => 'accordion'));
     $this->addCssClass($this->options, 'accordion');
 }
Пример #4
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
 }
Пример #5
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->addCssClass($this->options, 'tile');
 }