aboutsummaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-01-10 01:30:38 -0500
committerThedro Neely <thedroneely@gmail.com>2019-01-10 01:30:38 -0500
commitfa4892488fced6c26cb2cef7481fa0b48e7c641b (patch)
treeb350e43b350ec4edf7197282a351024549434741 /public/index.php
parentd8c7137c1a30fb56db99cb48c06f24d472dd21a4 (diff)
downloadthedroneely.com-fa4892488fced6c26cb2cef7481fa0b48e7c641b.tar.gz
thedroneely.com-fa4892488fced6c26cb2cef7481fa0b48e7c641b.tar.bz2
thedroneely.com-fa4892488fced6c26cb2cef7481fa0b48e7c641b.zip
bootstrap/Bootstrap: Allow bootstrap to facilitate more than one entry point
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/public/index.php b/public/index.php
index 8d94a89..fc39768 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,14 +1,8 @@
<?php
-/* require core files */
+/* start application */
require '../bootstrap/Bootstrap.php';
-/* create new router */
-$router = new Router;
-
-/* instantiate navigator functions */
-$navigation = new Navigation();
-
-/* direct routes as defined */
-require Router::load('../app/Routes.php')
+/* load routes */
+require Router::load($_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/Routes.php')
->direct(Request::uri(), Request::method());