You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/pagination.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ the previous section. Specify the segment number to use as the fifth parameter t
149
149
150
150
Please note: ``$segment`` value cannot be greater than the number of URI segments plus 1.
151
151
152
-
If you in need to show many pagers on one page then additional parameter which will define a group could be helpful:
152
+
If you need to show many pagers on one page then the additional parameter which will define a group could be helpful:
153
153
154
154
.. literalinclude:: pagination/007.php
155
155
@@ -224,7 +224,7 @@ usefulness. It is easiest to demonstrate creating a new view by showing you the
224
224
setSurroundCount()
225
225
------------------
226
226
227
-
In the first line, the ``setSurroundCount()`` method specifies than we want to show two links to either side of
227
+
In the first line, the ``setSurroundCount()`` method specifies that we want to show two links to either side of
228
228
the current page link. The only parameter that it accepts is the number of links to show.
229
229
230
230
.. note:: You must call this method first to generate correct pagination links.
@@ -274,7 +274,7 @@ In the code presented for the standard pagination structure, the methods `getPre
274
274
275
275
If you want to use the pagination structure where prev and next will be links to the previous and next pages based on the current page, just replace the `getPrevious() & getNext()`_ methods with `getPreviousPage() & getNextPage()`_, and the methods `hasPrevious() & hasNext()`_ by `hasPreviousPage() & hasNextPage()`_ respectively.
276
276
277
-
See following an example with these changes:
277
+
See the following example with these changes:
278
278
279
279
.. literalinclude:: pagination/014.php
280
280
@@ -325,7 +325,7 @@ links to be displayed. For example, if the set of links to be displayed is somet
325
325
326
326
3 | 4 | 5 | 6 | 7
327
327
328
-
``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.
328
+
``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.
329
329
330
330
.. note:: To obtain the page numbers of the first and last pages in the entire
331
331
result set, you can use the following approach: The first page number is always 1, and `getPageCount()`_ can be used to
0 commit comments