summaryrefslogtreecommitdiffstats
path: root/app/controller
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-02-17 20:29:11 -0500
committerMalf Furious <m@lfurio.us>2016-02-17 20:29:11 -0500
commitc003600effc33db5eef3bb41d8715a3c9daf04b2 (patch)
tree6f9edad8b5020d9fcec649f6578f6fd9cd36863d /app/controller
parentdb6505607b2356e91fe396badf50243407f3345b (diff)
downloadscrott-c003600effc33db5eef3bb41d8715a3c9daf04b2.tar.gz
scrott-c003600effc33db5eef3bb41d8715a3c9daf04b2.zip
Add 'Except' MVC -- Used to show application exception messages to user
This MVC should be triggered by the root controller if normal routines throw an exception and should pass the exception message to the Except controller.
Diffstat (limited to 'app/controller')
-rw-r--r--app/controller/except.control.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/controller/except.control.php b/app/controller/except.control.php
new file mode 100644
index 0000000..03d9c58
--- /dev/null
+++ b/app/controller/except.control.php
@@ -0,0 +1,27 @@
+<?php
+
+require_once "class/controller.class.php";
+require_once "model/except.mod.php";
+
+/*
+ * Display application Exceptions
+ */
+class Except extends Controller
+{
+ /*
+ * Controller implementation
+ */
+ function handle($message)
+ {
+ $mod = new ExceptModel();
+ $this->action_default($mod, $message);
+ }
+
+ function action_default($mod, $message)
+ {
+ $mod->deflt($message);
+ include "view/except/default.view.php";
+ }
+}
+
+?>