Skip to content

Commit d81f4c5

Browse files
authored
Merge pull request #8863 from obozdag/patch-4
docs: Small typos in libraries/pagination.rst
2 parents 700ba29 + 676b024 commit d81f4c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

user_guide_src/source/libraries/pagination.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ the previous section. Specify the segment number to use as the fifth parameter t
149149

150150
Please note: ``$segment`` value cannot be greater than the number of URI segments plus 1.
151151

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:
153153

154154
.. literalinclude:: pagination/007.php
155155

@@ -224,7 +224,7 @@ usefulness. It is easiest to demonstrate creating a new view by showing you the
224224
setSurroundCount()
225225
------------------
226226

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
228228
the current page link. The only parameter that it accepts is the number of links to show.
229229

230230
.. 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
274274

275275
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.
276276

277-
See following an example with these changes:
277+
See the following example with these changes:
278278

279279
.. literalinclude:: pagination/014.php
280280

@@ -325,7 +325,7 @@ links to be displayed. For example, if the set of links to be displayed is somet
325325

326326
3 | 4 | 5 | 6 | 7
327327

328-
``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.
328+
``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.
329329

330330
.. note:: To obtain the page numbers of the first and last pages in the entire
331331
result set, you can use the following approach: The first page number is always 1, and `getPageCount()`_ can be used to

0 commit comments

Comments
 (0)