/** * Renders the opening tag of the field container. * @return string the rendering result. */ public function begin() { /*$inputID = Html::getInputId($this->model, $this->attribute); $attribute = Html::getAttributeName($this->attribute); $options = $this->options; $class = isset($options['class']) ? [$options['class']] : []; $class[] = "field-$inputID"; $options['class'] = implode(' ', $class); $tag = ArrayHelper::remove($options, 'tag', 'div');*/ $tag = isset($this->options['tag']) ? $this->options['tag'] : 'div'; return Html::beginTag($tag, $this->options); }