Skip to content

Kirby 3.5.7.1

new Pagination()

Creates the pagination object. As a new property you can now pass the base Url.

new Pagination(array $params = [ ])

Parameters

Name Type Default
$params array [ ]

For the $params parameter, you pass an array with the following data, which will be used to set up the Kirby\Cms\Pagination object:

Name Type Description
limit int Sets the number of items per page
page int|string Sets the current page
total int Sets the total number of items

Parent class

Kirby\Cms\Pagination