public function init() { parent::init(); if ($this->model && $this->attribute) { $this->options['name'] = Html::getInputName($this->model, $this->attribute); $this->options[$this->modelAttribute] = Html::getInputNgModel($this->model, $this->attribute); } }