Skip to content

Kirby 3.8.4

Page

Returning a Page object will automatically render the HTML response for that page.

/site/config/config.php
return [
  'routes' => [
    [
      'pattern' => 'custom/response',
      'action'  => function () {
        return page('projects');
      }
    ]
  ]
];