summaryrefslogtreecommitdiffstats
path: root/app/controller
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-11-22 02:25:58 -0500
committerM <m@lfurio.us>2015-11-22 02:25:58 -0500
commit9250262017b605495c879a12ed38c693b1e024cc (patch)
tree1a8e117d1ad1886a5440c132585ea92f17dfdfc8 /app/controller
parent6a05dd8540ee72e8c3538d58e9e6d24f396d55a4 (diff)
downloadscrott-9250262017b605495c879a12ed38c693b1e024cc.tar.gz
scrott-9250262017b605495c879a12ed38c693b1e024cc.zip
* Root controller is now asserting the existence of scrott.conf.php and delegating to the correct mvc if it is missing
Diffstat (limited to 'app/controller')
-rw-r--r--app/controller/root.control.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/controller/root.control.php b/app/controller/root.control.php
index bb7bb4e..6263862 100644
--- a/app/controller/root.control.php
+++ b/app/controller/root.control.php
@@ -1,6 +1,7 @@
<?php
require_once "class/controller.class.php";
+require_once "controller/sysconf.control.php";
/*
* Root-level controller for Scrott app. This object will delegate the page request to the
@@ -13,9 +14,14 @@ class Root extends Controller
*/
function handle($argv)
{
+ /* First, make sure the system configuration file has been included */
+ if (!$this->scrottConfExists())
+ {
+ $ctrl = new Sysconf();
+ $ctrl->handle($argv);
+ }
+
/* TODO */
- $argv = $this->normalizeArgv($argv);
- echo implode("/", $argv);
}
/*