Ejemplo n.º 1
0
 /**
  * Generates an input for a model attribute.
  * @param string $type the input type.
  * @param CModel $model the data model.
  * @param string $attribute the attribute.
  * @param array $htmlOptions additional HTML attributes.
  * @param array $data data for generating the list options (value=>display).
  * @return string the generated input.
  * @see TbActiveForm::createInput
  */
 public function createInput($type, $model, $attribute, $htmlOptions = array(), $data = array())
 {
     $this->registerValidators($model, $attribute, $htmlOptions);
     return parent::createInput($type, $model, $attribute, $htmlOptions, $data);
 }