Re: Limit $paginate->numbers()
Thanks for your answers, but I meant the amount of numbers, that is displayed when calling the numbers-function. The solution is the parameter 'modulus'. Example: $paginator->numbers(array('modulus'=>3)); --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Limit $paginate->numbers()
On Thu, May 7, 2009 at 11:11 AM, Stu 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Limit $paginate->numbers()
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); --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Limit $paginate->numbers()
I think its: $this->paginate = array('limit' => 10); Thanks On Thu, May 7, 2009 at 1:45 AM, Stu wrote: > > Wait, > > did you mean the number of results displayed by page? If so : > > $paginate = array('limit'=>3); > > Cheers > > > -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Limit $paginate->numbers()
Wait, did you mean the number of results displayed by page? If so : $paginate = array('limit'=>3); Cheers --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Limit $paginate->numbers()
I think it's : $paginate = array('numbers'=>3); Cheers --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Limit $paginate->numbers()
Hey! Is there a way to limit $paginate->numbers() ? I tried: $paginate->numbers( array('limit'=>3) ); Regards, Benedikt R. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---