Skip to content

Kirby 3.5.7.1

fatal

Custom fatal view that is shown if there's a PHP error

The fatal option takes a closure as value.

return [
  'fatal' => function($kirby, $exception) {
    include $kirby->root('templates') . '/fatal.php';
  }
];
Since 3.5.5

The $exception argument was added in Kirby 3.5.5.