Yii - findAll with order by

前端 未结 3 1809
野性不改
野性不改 2021-01-14 06:56

How to findAll with specific column with order by desc ?

Code bellow worked and find all from the developer id

$id = Yii::app()->         


        
3条回答
  •  时光说笑
    2021-01-14 07:24

    you can try this -

    $id = Yii::app()->user->getState('id');
    
    $model = Games::model()->findAll(array("condition" => "developer_id = '".$id."'","order" => "status"));
    

    its should be work

提交回复
热议问题