Compare commits
4 Commits
e9aff1da32
...
4c401cd807
Author | SHA1 | Date | |
---|---|---|---|
4c401cd807 | |||
fefc18b892 | |||
a7997429b7 | |||
4d5e982370 |
11
views/error/500.php
Normal file
11
views/error/500.php
Normal 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('home')->generateLink() ?>" title="<?= $_ENV['APP_NAME'] ?>">Back to start.</a></p>
|
||||||
|
<?php if (isset($exceptionToPrint)): ?>
|
||||||
|
<pre class="marginTop">
|
||||||
|
<?= $exceptionToPrint ?>
|
||||||
|
</pre>
|
||||||
|
<?php endif; ?>
|
||||||
|
@endsection
|
1
web.php
1
web.php
@ -114,7 +114,6 @@ $appConfig = [
|
|||||||
|
|
||||||
$httpReponse = new HttpResponse(
|
$httpReponse = new HttpResponse(
|
||||||
Container::$request,
|
Container::$request,
|
||||||
Container::$dbConnection,
|
|
||||||
Container::$routeCollection,
|
Container::$routeCollection,
|
||||||
$appConfig,
|
$appConfig,
|
||||||
$_SERVER['REQUEST_METHOD'],
|
$_SERVER['REQUEST_METHOD'],
|
||||||
|
Loading…
Reference in New Issue
Block a user