Finish tag et commencer à ajouter les template.s

This commit is contained in:
2026-04-02 19:07:08 +02:00
parent 8a173ed2c7
commit 69a5a99e15
19 changed files with 620 additions and 34 deletions

View File

@@ -48,7 +48,7 @@ final class Router {
*/
public static function routeTo(): void {
self::$clientRouteString = $_SERVER['REQUEST_URI'];
self::$clientRouteString = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
self::$controllers = self::fetchControllers();
self::$routes = self::fetchRoutes();
@@ -185,7 +185,7 @@ final class Router {
return $args[$i++] ?? "";
}, $route->routeUrl);
return rtrim( Kernel::$configs['general']['website_url'] . $routeUrl, '/' );
return rtrim( rtrim( Kernel::$configs['general']['website_url'], '/' ) . $routeUrl, '/' );
}
}