public/index.php
changeset 49 611d4fe474d3
parent 39 8b4f9c6136f4
copy from index.php
copy to public/index.php
--- a/index.php
+++ b/public/index.php
@@ -1,13 +1,15 @@
 <?php
 
+chdir(dirname(__DIR__));
+require_once 'config/config.php';
+
 /**
  * Bröker Framework Version 0.1
  *
  * @author Markus Bröker<broeker.markus@googlemail.com>
  */
+
 use bfw\Dispatcher;
 
-require_once 'config/config.php';
-
 $dispatcher = new Dispatcher();
 return $dispatcher->delegate();