コード例 #1
0
ファイル: ActiveForm.php プロジェクト: itzj86/yii2-dwz
 /**
  * Runs the widget.
  * This registers the necessary javascript code and renders the form close tag.
  * @throws InvalidCallException if `beginField()` and `endField()` calls are not matching
  */
 public function run()
 {
     if (!empty($this->_fields)) {
         throw new InvalidCallException('Each beginField() should have a matching endField() call.');
     }
     if ($this->enableClientScript) {
     }
     echo Html::endTag('div');
     echo Html::endForm();
 }
コード例 #2
0
ファイル: ActiveField.php プロジェクト: itzj86/yii2-dwz
 /**
  * Renders the closing tag of the field container.
  * @return string the rendering result.
  */
 public function end()
 {
     return Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div');
 }