Skip to content

Kirby 4.4.1

$files->paginate()

Add pagination and return a sliced set of data.

$files->paginate(mixed ...$arguments = null): Kirby\Cms\Files

Parameters

Name Type Default
... $arguments mixed null

Return type

Kirby\Cms\Files

This method does not modify the existing $files object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Files inherited from Kirby\Cms\Collection

Example

$files      = $page->files()->paginate(10);
$pagination = $files->pagination();

Check out the docs for the $pagination object