From 8eee40df2acad40fd69e3ba563af8bdde85fba9a Mon Sep 17 00:00:00 2001 From: Daniel Brendel Date: Thu, 2 Mar 2023 13:45:02 +0100 Subject: [PATCH] Error 404 info --- app/controller/error404.php | 10 +--------- app/views/error/404.php | 16 +++------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/app/controller/error404.php b/app/controller/error404.php index d14212f..b0ed008 100644 --- a/app/controller/error404.php +++ b/app/controller/error404.php @@ -12,14 +12,6 @@ class Error404Controller extends BaseController { */ public function index($request) { - //Add a log line - addLog(ASATRU_LOG_INFO, "Error 404"); - - //Generate the 404 view - $v = new Asatru\View\ViewHandler(); - $v->setLayout('layout') //The layout file. Will be \app\views\layout.php - ->setYield('yield', 'error/404'); //The index yield. Will be \app\views\error\404.php - - return $v; //Pass the object to the engine + return parent::view(['content', 'error/404']); } } \ No newline at end of file diff --git a/app/views/error/404.php b/app/views/error/404.php index 0593043..24e0142 100644 --- a/app/views/error/404.php +++ b/app/views/error/404.php @@ -1,17 +1,7 @@ -
-
-
-

Error 404

-
+
+

Error 404

-
-

The requested resource was not found on the server.

-
- - -
+

The requested resource was not found on the server.

\ No newline at end of file