public function init() { parent::init(); if (!isset($this->options['id'])) { $this->options['id'] = $this->getId(); } }
public function init() { parent::init(); if ($this->id) { $this->_gallery = \common\models\Gallery::findOne($this->id); } else { throw new InvalidConfigException(\Yii::t('front', 'No required parameter given') . ' - id'); } if (!$this->type) { throw new InvalidConfigException(\Yii::t('front', 'No required parameter given') . ' - type'); } }
/** * Initializes the widget */ public function init() { parent::init(); $this->initOptions(); }
public function init() { parent::init(); ob_start(); }