<th><?php echo $paginator->sort('AssocModel',AssocModel.field');?></
th>
Otherwise, use a stored procedure and Cake should handle the return
set like a query return and sort the aggregate field as if it were a
column.
On May 4, 9:59 am, Hrmo <miguel.he...@gmail.com> wrote:
> I can't figure out how to sort paginated results by an aggregate field
> (like sorting posts by number of comments). The only solution I found
> (https://trac.cakephp.org/ticket/5220) involves changing the core of
> cakePHP, and I prefer not to do that. Any solution?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment