summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-22 12:28:28 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-22 12:28:28 -0400
commit2230dd4e6b148346c0ec596b9e3e12996a762ed8 (patch)
treeef99ccde4f8b18592a3fb06a6ec45162c501fe38 /index.php
parenta750b8ab2a0cb715da6fd9025a7ec8375db68a4d (diff)
Code refactoring (add autoloader and change files organization)
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/index.php b/index.php
index bd691c10..cee8017d 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,9 @@
<?php
-require __DIR__.'/check_setup.php';
-require __DIR__.'/common.php';
-require __DIR__.'/core/router.php';
+require __DIR__.'/app/check_setup.php';
+require __DIR__.'/app/common.php';
-$router = new Core\Router($registry);
+use Core\Router;
+
+$router = new Router($registry);
$router->execute();