From c003600effc33db5eef3bb41d8715a3c9daf04b2 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 17 Feb 2016 20:29:11 -0500 Subject: 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. --- app/controller/except.control.php | 27 +++++++++++++++++++++++++++ app/model/except.mod.php | 15 +++++++++++++++ app/view/except/default.view.php | 24 ++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 app/controller/except.control.php create mode 100644 app/model/except.mod.php create mode 100644 app/view/except/default.view.php (limited to 'app') 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 @@ +action_default($mod, $message); + } + + function action_default($mod, $message) + { + $mod->deflt($message); + include "view/except/default.view.php"; + } +} + +?> diff --git a/app/model/except.mod.php b/app/model/except.mod.php new file mode 100644 index 0000000..f456227 --- /dev/null +++ b/app/model/except.mod.php @@ -0,0 +1,15 @@ + diff --git a/app/view/except/default.view.php b/app/view/except/default.view.php new file mode 100644 index 0000000..2aa7a73 --- /dev/null +++ b/app/view/except/default.view.php @@ -0,0 +1,24 @@ + + + + + + Scrott - Application Exception + + + + + + + +
+
+

Something happened

+
+
+ + + + -- cgit v1.2.3