fieldConfig; if ($config instanceof \Closure) { $config = call_user_func($config, $model, $attribute); } if (!isset($config['class'])) { $config['class'] = $this->fieldClass; } return Yii::createObject(ArrayHelper::merge($config, $options, [ 'model' => $model, 'attribute' => $attribute, 'form' => $this, ])); } // public function endField() // { // $field = array_pop($this->_fields); // if ($field instanceof zActiveField) { // return $field->end(); // } else { // throw new InvalidCallException('Mismatching endField() call.'); // } // } }