/** *### .init() * * Initializes the widget. */ public function init() { $this->htmlOptions['type'] = 'text'; $this->htmlOptions['autocomplete'] = 'off'; if (!isset($this->options['language'])) { $this->options['language'] = substr(Yii::app()->getLanguage(), 0, 2); } parent::setDefaultPlaceholder(); }