<?php $path = $_SERVER['REQUEST_URI']; $path = parse_url($path, PHP_URL_PATH); $router = new Router([ new Route('/register', 'register.php') ]); $route = $router->route($path); require_once($route->get('controllerName'));
You have javascript disabled. You will not be able to edit any code.