[FEATURE] Added ressource controller type

This commit is contained in:
Simon Sessingø
2015-10-06 19:46:07 +02:00
parent 6354c3c766
commit cbe1af0ab9
5 changed files with 99 additions and 12 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class RouterBase {
$this->backstack = array();
$this->controllerUrlMap = array();
$this->requestUri = $_SERVER['REQUEST_URI'];
$this->requestMethod = strtolower(isset($_GET['_method']) ? $_GET['_method'] : $_SERVER['REQUEST_METHOD']);
$this->requestMethod = ($_SERVER['REQUEST_METHOD'] != 'GET') ? 'post' : 'get';
}
public function addRoute(RouterEntry $route) {