How can I convert the result of Trips::model()->findAll() to an array?
Trips::model()->findAll()
i use $array = CJSON::decode(CJSON::encode($model)); to convert $model to $array.
$array = CJSON::decode(CJSON::encode($model));