How can I convert the result of Trips::model()->findAll() to an array?
Trips::model()->findAll()
This is same.
$array = CHtml::listData(Trips::model()->findAll(), 'trip_id', 'trip_name');