page($uri = null)

Fetches any page by URI or the current page when no URI is specified

  • $uri (string)
  • return ($page)

Example

Fetching a specific page by URI

<?= page('blog')->title() ?>

Fetching the current page

<?= page()->title() ?>