I finally stumbled on the solution.  My search results were returned
as an array, the order of which was important.
This is the final piece of code I used:
$this->paginate =
array('limit'=>10,'conditions'=>array('PortfolioEntry.id'=>
$result),'order'=>array('FIELD(PortfolioEntry.id,'.implode(',',
$result).')'));
where $result is an array containing the relevant id's in the order I
want the results to be displayed.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to