$site->page($uri = null)

Returns a specific $page object by URI. If no URI is specified the currently active page will be returned.

  • return ($page)

Example

Fetching the current page

<?php echo $site->page()->title() ?>

Fetching any subpage

<?php echo $site->page('some/sub/page/deep/down')->title() ?>