IanBrison / Bravel

My Original Framework
12 stars 0 forks source link

Do something with a fatal error when it occurs in the twig template #27

Open IanBrison opened 5 years ago

IanBrison commented 5 years ago

In some cases, when a fatal error happens in a ViewModel, the message doesn't come up to the BravelApplication's error handler. It just gets printed in the template and the whole rendering stops.

memo: can generate a fatal error with trigger_error('Error message', E_USER_ERROR);