add view for error 500

This commit is contained in:
Bence Pőcze 2023-04-20 00:04:36 +02:00
parent c9ab7c31b7
commit 69f54c861a
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

11
views/error/500.php Normal file
View File

@ -0,0 +1,11 @@
@extends(templates/layout_normal)
@section(main)
<h2>500 | Internal server error</h2>
<p>An error occured during processing your request. <a href="<?= Container::$routeCollection->getRoute('index')->generateLink() ?>" title="<?= $_ENV['APP_NAME'] ?>">Back to start.</a></p>
<?php if (isset($exceptionToPrint)): ?>
<pre class="marginTop">
<?= $exceptionToPrint ?>
</pre>
<?php endif; ?>
@endsection