protected function getAttributes() { $attributes = parent::getAttributes(); unset($attributes['type']); $attributes['class'][] = 'select2'; $attributes['content'] = $this->getContent(); return $attributes; }
/** * Вывод виджета "Поле ввода" * * @param array $params * @return string * @throws Exception */ public static function input($params = array()) { $widget = new CStatefullFormWidget_Input($params); return $widget->run(); }
protected function getAttributes() { $attributes = parent::getAttributes(); $attributes['type'] = 'hidden'; return $attributes; }