Set "limit" param as an array $this->paginate(array('limit'=>30));
http://book.cakephp.org/view/165/Controller-SetupOn 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
