Skip to content

Kirby 3.9.2

new Pagination()

Creates a new pagination object with the given parameters

new Pagination(array $props = [ ])


Name Type Default
$props array [ ]

For the $props parameter, you pass an array with the following data, which will be used to set up the Kirby\Toolkit\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