コード例 #1
0
ファイル: Tabs.php プロジェクト: dextercool/yii2-easyui
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->registerWidget('tabs');
     echo Html::beginTag('div', $this->options) . "\n";
     $this->renderItems();
 }
コード例 #2
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.");
     }
     if ($this->hasModel() && !isset($this->options['id'])) {
         $this->options['id'] = Html::getInputId($this->model, $this->attribute);
     }
     parent::init();
 }
コード例 #3
0
ファイル: ActiveForm.php プロジェクト: dextercool/yii2-easyui
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->registerWidget('form');
     echo Html::beginForm($this->action, $this->method, $this->options);
 }
コード例 #4
0
ファイル: DataGrid.php プロジェクト: dextercool/yii2-easyui
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->normalizeColumns();
 }