On Thu, May 7, 2009 at 11:11 AM, Stu <[email protected]> wrote:
>
> yeah, I actually call it from the app_controller, for I need a page
> limit of 10 entries globally so mine actually looks like:
>
> var $paginate = array('limit'=>10);
>
> but, if you want to change it for one controller, yes it would be:
>
> $this->paginate = array('limit' => 10);
If the change is for a particular *action* it should be:
$this->paginate['limit'] = 10;
So, only the limit option is overridden. The example above would have
wiped out any other options.
When setting the options globally for a controller:
var $paginate = array('limit' => 10, other options here);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---