src/Mvc/Router.php
private function setParams()
    {
        // be addin' the $_GET an' $_POST t' th' params!
        $method = $this->request->getMethod();
        $getParams = $this->request->getQueryParams();
        $postParams = $this->request->getParsedBody();
        if ($method == "POST" && is_array($postParams)) {
            $this->params = array_merge($this->params, $postParams);
        }
        $this->params = array_merge($this->params, $getParams);
    }
private function setParams()
    {
        // be addin' the $_GET an' $_POST t' th' params!
        $method = $this->request->getMethod();
        $getParams = $this->request->getQueryParams();
        $postParams = $this->request->getParsedBody();
        if ($method == "POST" && is_array($postParams)) {
            $this->params = array_merge($this->params, $postParams);
        }
        $this->params = array_merge($this->params, $getParams);
    }
private function setParams ( ) { // be addin' the $_GET an' $_POST t' th' params! $ method = $ this -> request -> getMethod ( ) ; $ getParams = $ this -> request -> getQueryParams ( ) ; $ postParams = $ this -> request -> getParsedBody ( ) ; if ( $ method == "POST" && is_array ( $ postParams ) ) { $ this -> params = array_merge ( $ this -> params , $ postParams ) ; } $ this -> params = array_merge ( $ this -> params , $ getParams ) ; }
Merges params from config
Merges params from config