index.php
@@ -1,7 +1,10 @@ <?php $action = $_GET["action"]; $controller = $_GET["controller"]; $path = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); $segments = explode("/", $path); $controller = $segments[1]; $action = $segments[2]; require "src/controllers/$controller.php";