method = $_GET['page']; } require_once '../src/controller/' . $this->controller . '.php'; $this->controller = new $this->controller; if (!method_exists($this->controller, $this->method)) { $this->method = 'home'; } call_user_func_array([$this->controller, $this->method], $this->params); } }