-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI segment as page number in Pagination #1213
Conversation
links with the ``makeLinks()`` adding as a 5th parameter URI segment number, which contains page number. | ||
|
||
<?= $pager->makeLinks($page, $perPage, $total, 'template_name', $segment) ?> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add additional detail showing what the uri would look like and how it would use the segment and I'm good with this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is still anything wrong? pls lemme know.
how uri will looks like + useful notes
how uri will looks like + useful notes
- set currentPage = 1 when declared segment is not exist: i.e. http://domain.tld/user/index - first page of list. - minor fix if ``only`` option is used
@lonnieezell could you check if everything is ok? |
Your user guide writeup is awkward. Suggestion: It is also possible to use a URI segment for the page number, instead of the
Please note: $segment value can not be greater than the number of URI segments plus 1. |
@jim-parry: doc fix, thx.
Description
Allows to pass URI segment as the page number to $pager->makeLinks().
Checklist: