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 [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
-~----------~----~----~----~------~----~------~--~---