/**
  * @inheritdoc
  */
 public function run()
 {
     parent::run();
     if ($this->hasModel()) {
         return Html::activeTextInput($this->model, $this->attribute, $this->options);
     } else {
         return Html::textInput($this->name, $this->value, $this->options);
     }
 }
 /**
  * @inheritdoc
  */
 public function run()
 {
     parent::run();
     if ($this->hasModel()) {
         return Html::activeDropDownList($this->model, $this->attribute, $this->items, $this->options);
     } else {
         return Html::dropDownList($this->name, $this->value, $this->items, $this->options);
     }
 }