Re: Disable pagination in one action
I agree with AD7six why would you need to disable instead of $news = $this->paginate('News'); do this and no paginator $news = $this->News->find('all'); -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Disable pagination in one action
On Wednesday, 3 July 2013 10:01:23 UTC+2, Ernesto wrote: > > Hi all > > can i disable pagination just for one action? > If you don't call the component it it's not going to do anything. The helper isn't loaded at all unless the component is used. Why do you "need" to disable it? AD -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Disable pagination in one action
Hi all can i disable pagination just for one action? i tried $this->Components->disable("Paginator"); $this->Helpers->disable("Paginator"); in my controller's action but the only things i get are errors Thank you -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.