Hi, I think this is what your after http://debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp:48ad241e-b018-4532-a748-0ec74834cda3
On 18 Jan, 22:08, ml <mlehmusko...@gmail.com> wrote: > This could be a common problem, but searching this group provided no > discussions with any pagination related words. I assume there could be > something wrong with the search since pagination is probably a very > widely used feature. > > Anyway, I'm trying to add two or more AJAX paginators on a view. When > adding two paginated models from a single controller, all the models > share a paginator meaning they all jump when one of them gets clicked. > I'm doing this in the controller: > > $teams = $this->paginate('Team'); > $users = $this->paginate('User'); > > debug($teams); > > $this->set(compact( > 'teams', > 'users')); > > After this, paginators can be added on the view for both teams and > users, but the $paginator->prev and $paginator->next affect both of > the paginators simultaneously. > > If I get the paginated data with requestAction from a view or element, > no paginator at all is created on the view. > > How can I create more than on pagination helpers on the view? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---