Recently I faced an issue while implementing an "Order By" command in cakephp pagination it was not taking the regular cakephp syntax
So I performed the same as follows
$this->Paginate=array('limit'=>10,'order'=>array('Model.field1'=>'asc'));
remember I used regular order i.e.
$this->Paginate=array('limit'=>10,'order'=>array('Model.field1 ASC'));
but this did not work
So I performed the same as follows
$this->Paginate=array('limit'=>10,'order'=>array('Model.field1'=>'asc'));
remember I used regular order i.e.
$this->Paginate=array('limit'=>10,'order'=>array('Model.field1 ASC'));
but this did not work
No comments:
Post a Comment