Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implement mulitple paginators
This change provides the initial support for multiple paginators on a given page. To use it, you can do something like the following in your controller layer: ```php $users = $this->paginate($this->Users->find(), ['prefix' => 'users']); $categories = $this->paginate($this->Categories->find(), ['prefix' => 'categories']); $this->set(compact('users', 'categories')); ``` The in your view layer, specify the model option whenever the `PaginatorHelper` allows you to set options. Closes #1731
- Loading branch information
1 parent
3b3a8b7
commit ed233e7
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters