Skip to content

Kirby 4.5.0

$pagination->page()

Getter for the current page

$pagination->page(): int

Return type

int

Parent class

Kirby\Cms\Pagination inherited from Kirby\Toolkit\Pagination

Example

<?php

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

echo 'The current page is ' . $pagination->page();

?>