values in drop down list called via CActiveForm::dropDownList() is be populated by passing array of value => text as parameter.
eg, to select sex of a person, in the form view file:
<?php echo $form->dropDownList($form, 'sex', array('1' =&g… more »
Tags: dropdown
yii: drop down list filter in CGridView
by default the filter for each data column is a text field. to display the field as drop down list, CDataColumn::filter property must be set as an array. for example, for user table there's column for sex represented by 1 = male and 2 = female. in the… more »