when there's an unhandled exception in the layout/view the produced output until that point is shown before the output of the errors controller.
to reproduce: turn on errors (bootstrap), write <?= $this->nonexist->foo(); ?> in your layout/view.
<?= $this->nonexist->foo(); ?>
Fix for Issue #66
Refactored solution and added test for Issue #66
Test and fix for issue #66
i think it can be closed
Good deal. Thanks for the heads-up.