fvsch / kirby-twig

Twig templating support for Kirby CMS 2. For Kirby 3, use https://github.com/amteich/kirby-twig
MIT License
70 stars 8 forks source link

The custom twig error page is not working. #8

Closed seehat closed 8 years ago

seehat commented 8 years ago

It seams that the path when loading the error template isn't correct. Shouldn't it be like this:

$html = Tpl::load(dirname(__DIR__) . DS . 'templates' . DS . 'twigerror.php', [
    'title' => $title,
    'message' => $message,
    'file' => $file,
    'code' => $code
]);
return new Response($html, 'html', 500);
fvsch commented 8 years ago

Welp, that's embarrassing.

fvsch commented 8 years ago

Fixed in 2.0.1. Thanks for the heads up!