/** * 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(); }
/** * 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'); }