Exception with custom route

Guess this happens because you echo the template. This should work:

return new Response(tpl::load(kirby()->roots()->templates() . DS . 'cv-template-no-1.php'), 'html', 200);
1 Like