aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/Bootstrap.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/bootstrap/Bootstrap.php b/bootstrap/Bootstrap.php
index 665bdc6..39e6c08 100644
--- a/bootstrap/Bootstrap.php
+++ b/bootstrap/Bootstrap.php
@@ -1,10 +1,16 @@
<?php
-/* composer autoloader */
-require '../vendor/autoload.php';
+/* composer autoload */
+require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php';;
/* source config file */
-$config = include '../AppConfig.php';
+$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';;
-/* database query setup */
+/* connect database */
$contact['database'] = new QueryBuilder(Connection::make($config['database']));
+
+/* create new router */
+$router = new Router;
+
+/* create navigator */
+$navigation = new Navigation();