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
Display the source diff
Display the rich diff
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
@@ -291,7 +291,7 @@ page is page 3. If the surrounding count is 2, then the following links would sh
291
291
``hasPreviousPage()`` would return ``true`` since there is page 2. And,
292
292
``hasNextPage()`` would return ``true`` since there is page 4.
293
293
294
-
.. note:: The difference to `hasPrevious() & hasNext()`_ is that they are based
294
+
.. note:: The difference to `hasPreviousPage() & hasNextPage()`_ is that they are based
295
295
on the current page while `hasPrevious() & hasNext()`_ are based on the set
296
296
of links to be displayed before and after the current page based on the value
0 commit comments