Skip to content

Commit 765c518

Browse files
authored
docs: Small typos in libraries/pagination.rst
Small typos in libraries/pagination.rst
1 parent 84e06d0 commit 765c518

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

@@ -291,7 +291,7 @@ page is page 3. If the surrounding count is 2, then the following links would sh
291291
``hasPreviousPage()`` would return ``true`` since there is page 2. And,
292292
``hasNextPage()`` would return ``true`` since there is page 4.
293293

294-
.. note:: The difference to `hasPrevious() & hasNext()`_ is that they are based
294+
.. note:: The difference to `hasPreviousPage() & hasNextPage()`_ is that they are based
295295
on the current page while `hasPrevious() & hasNext()`_ are based on the set
296296
of links to be displayed before and after the current page based on the value
297297
passed in `setSurroundCount()`_.

0 commit comments

Comments
 (0)