links()
links(string $group = 'default', string $template = 'default') : string
Handles creating and displaying the
Parameters
string | $group | |
string | $template | The output template alias to render. |
Expected behavior for a Pager
makeLinks(integer $page, integer $perPage, integer $total, string $template = 'default') : string
Allows for a simple, manual, form of pagination where all of the data is provided by the user. The URL is the current URI.
integer | $page | |
integer | $perPage | |
integer | $total | |
string | $template | The output template alias to render. |
getPageURI(integer|null $page = null, string $group = 'default', boolean $returnObject = false) : string|\CodeIgniter\HTTP\URI
Returns the URI for a specific page for the specified group.
integer|null | $page | |
string | $group | |
boolean | $returnObject |
getDetails(string $group = 'default') : array
Returns an array with details about the results, including total, per_page, current_page, last_page, next_url, prev_url, from, to.
Does not include the actual data. This data is suitable for adding a 'data' object to with the result set and converting to JSON.
string | $group |