summaryrefslogtreecommitdiff
path: root/web/routes/error/controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/routes/error/controller.php')
-rw-r--r--web/routes/error/controller.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/web/routes/error/controller.php b/web/routes/error/controller.php
new file mode 100644
index 0000000..3cb2345
--- /dev/null
+++ b/web/routes/error/controller.php
@@ -0,0 +1,20 @@
+<?php /* Copyright (c) 2024 Freya Murphy */
+class ErrorController extends Controller {
+
+ private $model;
+
+ function __construct($model) {
+ parent::__construct();
+ $this->model = $model;
+ }
+
+ public function index() {
+ parent::index();
+ $data = $this->model->get_data();
+ $this->view('header', $data);
+ $this->app_view('error', $data);
+ }
+
+}
+
+?>