activeTextField()
public static method
Generates a text field input for a model attribute.
public static activeTextField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string |
$model |
CModel |
the data model. |
$attribute |
string |
the attribute. |
$htmlOptions |
array |
additional HTML attributes. |
return |
string |
the generated input field. |