Document Root nach public verschoben
authorMarkus Bröker<broeker.markus@googlemail.com>
Fri, 15 Sep 2017 09:58:42 +0200
changeset 49 611d4fe474d3
parent 48 d476d5f4758f
child 50 b65e2d0ece0d
Document Root nach public verschoben
.htaccess
css/main.css
index.php
js/main.js
public/.htaccess
public/css/main.css
public/index.php
public/js/main.js
rename from .htaccess
rename to public/.htaccess
rename from css/main.css
rename to public/css/main.css
rename from index.php
rename 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();
rename from js/main.js
rename to public/js/main.js