diff options
| author | M <m@lfurio.us> | 2015-11-22 02:25:58 -0500 | 
|---|---|---|
| committer | M <m@lfurio.us> | 2015-11-22 02:25:58 -0500 | 
| commit | 9250262017b605495c879a12ed38c693b1e024cc (patch) | |
| tree | 1a8e117d1ad1886a5440c132585ea92f17dfdfc8 | |
| parent | 6a05dd8540ee72e8c3538d58e9e6d24f396d55a4 (diff) | |
| download | scrott-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
| -rw-r--r-- | app/controller/root.control.php | 10 | 
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);      }      /* | 
