$pagination->page()

Returns the current page number

  • return (integer)

Example

<?php

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

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

?>

Is something missing or incorrect? Edit this page on Github…