コード例 #1
0
ファイル: Widget.php プロジェクト: pipekung/yii2-widgets
 public function init()
 {
     parent::init();
     if (!isset($this->options['id'])) {
         $this->options['id'] = $this->getId();
     }
 }
コード例 #2
0
ファイル: Gallery.php プロジェクト: czechcamus/dasport
 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');
     }
 }
コード例 #3
0
ファイル: Growl.php プロジェクト: CBETOBuT/yii2-widgets
 /**
  * Initializes the widget
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
 }
コード例 #4
0
ファイル: Header.php プロジェクト: nagser/base
 public function init()
 {
     parent::init();
     ob_start();
 }