findAll(array("select" yii1 code example
Example: yii1 findall as array
echo CHtml::activeDropDownList($model, 'category', CHtml::listData(Category::model()->findAll(), 'id', 'name'));
echo CHtml::activeDropDownList($model, 'category', CHtml::listData(Category::model()->findAll(), 'id', 'name'));