Creates an active form input of the given type.
public static createActiveInput ( string $type, CModel $model, string $attribute, array $htmlOptions = [], array $data = [] ) : string | ||
$type | string | the input type. |
$model | CModel | the model instance. |
$attribute | string | the attribute name. |
$htmlOptions | array | additional HTML attributes. |
$data | array | data for multiple select inputs. |
return | string | the input. |