Thursday, February 26, 2009

Re: Pagination - Increasing results per page.

On Feb 27, 1:25 am, Elricho <elrich...@gmail.com> wrote:
> Hi Bakers,
>
> When paginating, how do I increase the page size (ie. number of
> records per page) from 20 rows to say 50 ?

Change the 'limit' option of the $paginate array to 50. For example:
var $paginate = array('limit' => 50, .....); Where "...." is your
other pagination settings.
--~--~---------~--~----~------------~-------~--~----~
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: