new Pagination()
Creates the pagination object. As a new property you can now pass the base Url. That Url must be the Url of the first page of the collection without additional pagination information/query parameters in it.
new Pagination(array $params = [ ])
Parameters
Name | Type | Default |
---|---|---|
$params | array |
[ ]
|
Parent class
Examples
$pagination = new Pagination([
'page' => 1,
'limit' => 10,
'total' => 120,
'method' => 'query',
'variable' => 'p',
'url' => new Uri('https://getkirby.com/blog')
]);