This sets the limit on data per page, not data returned from the database.
Looks like limit means two different things when set from paginate, and when
set from model->find

On Fri, May 27, 2011 at 10:54 AM, majna <[email protected]> wrote:

> Set "limit" param as an array $this->paginate(array('limit'=>30));
> http://book.cakephp.org/view/165/Controller-Setup
>
> On May 26, 9:11 am, Okalany Daniel <[email protected]> wrote:
> > Hi All,
> > i can't seem to be able to limit the number of records returned from
> cakephp
> > pagination.
> >
> > $this->paginate('limit'=>30);
> > limits the number of results per page. But i want to limit the total
> dataset
> > returned. Set it to like 300 since i have a very large table.
> >
> > regards,
> > Daniel
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
OKALANY DANIEL,
P.O BOX 26150,
Kampala.,
Uganda.
http://okasoft.net
--

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to