Skip to content

Kirby 3.8.4

new Pagination()

Creates a new pagination object with the given parameters

new Pagination(array $props = [ ])

Parameters

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

Kirby\Toolkit\Pagination