Hello Melanie, as far as I know, the core's Pagination only works on one "query" (e.g. one primary model and its associations aka contains/ joins) at a time.
I have opened an enhancement ticket for 1.3: http://cakephp.lighthouseapp.com/projects/42648/tickets/102-support-for-multiple-pagination I have started a component and a helper to support mutiple pagination but its largely unfinished and currently I am not working on it - you may grab the idea or current implementation and make it your own: Component: http://github.com/ionas/Cake-spices/blob/master/app/controllers/components/paginator.php Helper: http://github.com/ionas/Cake-spices/blob/master/app/views/helpers/paging.php If you require that pagination of multiple models on the same http request page works, but not at the same time, which means you paginate a buddy list and then you paginate a shouts list and the buddy list is still there but jumps back to page one the moment you paginate the shouts list you might try this solution: http://debuggable.com/posts/how-to-have-multiple-paginated-widgets-on-the-same-page-with-cakephp:48ad241e-b018-4532-a748-0ec74834cda3 Last but not least if you require javascript to be enabled for users and do not require SEO friendlyness you can paginate just using ajax fine. Like this: http://mark-story.com/posts/view/creating-simple-ajax-pagination-with-cakephp-1-3-and-mootools Viel Glück. Jonas On Dec 27, 7:11 pm, Melanie Sommer <melanie-som...@mailinator.com> wrote: > Hello, > > I try to have several tables with paginated data in one view. > > ########################### > texttexttexttext > > div with paginated data 1 > > div with paginated data 2 > > div with paginated data 3 > ########################### > > When loading the page the first time everything seems correct except > for all counters > > In the controller I have these lines: > $data1= $this->paginate('data1'); > $data2= $this->paginate('data2'); > $data2= $this->paginate('data3'); > > There seems to be only one counter (for data1)? What do I have to do > to get several counters? > > When updating the paginated divs, alls three divs contain now data1. > I have theese lines in my code - no check from which div the call > came. Where can I access this data? Where do I have to put it > $paginator->options()? > > if($this->RequestHandler->isAjax()){ > $this->viewPath = 'elements'; > $this->render('paging1'); > > } > > I am sorry if my text is a bit confusing. English is a foreign > language for me and I do not really know how to describe my problem. > Thank you for any suggestions! > > Melanie Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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