Re: How to paginate ordered by condition Id ? (solved)

2009-04-17 Thread yodi
Sorry, finally i can solved this. This is my solution : function paginateSearch($id = array()){ $list = implode(",",$id); $order = 'FIELD(PhotoAlbum.photo_album_id, '.$list.')'; . . 'order' => $order } hope this help someone. On Sat, 2009-04-18 at 00:33 +0700, yodi wrote: > H

How to paginate ordered by condition Id ?

2009-04-17 Thread yodi
Hello all, I have some ranking system and got some id by rank (not in field but processed by script in controller) like this : array('4','2','3'); So, i want paginate this. $result = array('4','2','3'); $this->paginate = $this->Photo->paginateSearch(); $this->set('photos',this->paginate('Phot