/** * Prepare the input fields for the input * * @return void */ protected function prepareInput() { if ($this->hasModel()) { $this->sections['input'] = Html::activeTextarea($this->model, $this->attribute, $this->options); } else { $this->sections['input'] = Html::textarea($this->name, $this->value, $this->options); } }