Skip to content

Commit

Permalink
Update pagination.rst
Browse files Browse the repository at this point in the history
Corrected Typo
  • Loading branch information
dangereyes88 authored Sep 13, 2019
1 parent 051ecf8 commit b465ddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/libraries/pagination.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ It even reads the current page it should display from the current URL via a ``pa

To provide a paginated list of users in your application, your controller's method would look something like::

<?php namespace App\Constrollers;
<?php namespace App\Controllers;

use CodeIgniter\Controller;

Expand Down Expand Up @@ -112,10 +112,10 @@ It is also possible to use a URI segment for the page number, instead of the pag

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

If you in need to show many pagers on one page then additional parameter which wil define a group could be helpful::
If you in need to show many pagers on one page then additional parameter which will define a group could be helpful::

$pager = service('pager');
$pager->setPath('path/for/my-group', 'my-group'); // Additionaly you could define path for every group.
$pager->setPath('path/for/my-group', 'my-group'); // Additionally you could define path for every group.
$pager->makeLinks($page, $perPage, $total, 'template_name', $segment, 'my-group');

Paginating with Only Expected Queries
Expand Down

0 comments on commit b465ddd

Please sign in to comment.