Generates a drop down list for a model attribute.
public static activeDropDownList ( CModel $model, string $attribute, array $data, array $htmlOptions = [] ) : string | ||
$model | CModel | the data model. |
$attribute | string | the attribute. |
$data | array | data for generating the list options (value=>display). |
$htmlOptions | array | additional HTML attributes |
return | string | the generated drop down list. |