Open tylersmith102998 opened 4 years ago
Fixed around this point in Route->breakDownRoute()
if (!$this -> checkControllerMethodExists($controller, $method)) { $method = "Index"; $this->_404 = true; //throw new ControllerNotFoundException("Method {$method} is not a member of controller {$controller}", 405); }
if (isset($route[0]) && !empty($route[0])) { $method = ucfirst($route[0]); unset($route[0]); $route = array_values($route); // See above; }
This is the main code that fixed it.
added the !empty() condition ^^
Alter the way parsing the URI works in the breakdown function