diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/index.php b/index.php deleted file mode 100644 index c38567d..0000000 --- a/index.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive; - -require_once "autoload.php"; - -use AugustOffensive\View; -use AugustOffensive\Controller; - -// configure content type before anything is output -header("Content-Type: application/" . View\Main::TYPE); - -try { - // initiate connection and build front-end - $connection = Controller\Controller::initiateConnection(); - $view = new View\Main($connection); - - // get results of query from front-end - $result = $view->generateResult(); - - echo $result; -} catch (\Exception $err) { - // catch all exceptions and let the controller generate the error - $error = Controller\Controller::errorResult($err); - - // pass generated error result to output - echo View\Main::generateOutput($error); -} |
