Skip to content

Commit

Permalink
Merge pull request #2216 from dangereyes88/develop
Browse files Browse the repository at this point in the history
Update uri.rst
  • Loading branch information
MGatner authored Sep 14, 2019
2 parents c925624 + b465ddd commit f9b1ef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/uri.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Working with URIs
*****************

CodeIngiter provides an object oriented solution for working with URI's in your application. Using this makes it
CodeIgniter provides an object oriented solution for working with URI's in your application. Using this makes it
simple to ensure that the structure is always correct, no matter how complex the URI might be, as well as adding
relative URI to an existing one and have it resolved safely and correctly.

Expand Down

0 comments on commit f9b1ef7

Please sign in to comment.