diff --git a/index.php b/public/index.php 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();