Closed zessx closed 10 years ago
Currently, we can't access to the exception from our custom error template (errors/error.phtml and errors/404.phtml). This quickfix simply pass the exception object to the template, in a exception var. We then can use it simply :
errors/error.phtml
errors/404.phtml
exception
<h1><?= $exception->getMessage() ?></h1>
Very useful, thank you
Currently, we can't access to the exception from our custom error template (
errors/error.phtml
anderrors/404.phtml
).This quickfix simply pass the exception object to the template, in a
exception
var. We then can use it simply :