How to findAll with specific column with order by desc ?
Code bellow worked and find all from the developer id
$id = Yii::app()->
You can try use criteria:
$id = Yii::app()->user->getState('id'); $criteria=new CDbCriteria; $criteria->compare('developer_id',$id); $criteria->order='status DESC'; $models = Games::model()->findAll($criteria);