diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controller/except.control.php | 27 | ||||
-rw-r--r-- | app/model/except.mod.php | 15 | ||||
-rw-r--r-- | app/view/except/default.view.php | 24 |
3 files changed, 66 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"; + } +} + +?> 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 @@ +<?php + +require_once "model/master.mod.php"; + +class ExceptModel extends MasterModel +{ + /* + * Default action + */ + function deflt() + { + } +} + +?> 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 @@ +<!DOCTYPE html> + +<html lang="en"> + <head> + <?php include "view/master/head.view.php"; ?> + <title>Scrott - Application Exception</title> + + <style type="text/css"> + body { padding-top: 50px; } + </style> + </head> + + <body> + <?php include "view/master/topp.view.php"; ?> + + <div class="container"> + <div class="jumbotron"> + <h1 class="text-center">Something happened</h1> + </div> + </div> + + <?php include "view/master/foot.view.php"; ?> + </body> +</html> |