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