From f45a16d7470766948518bd3de967fd7c2de9af9f Mon Sep 17 00:00:00 2001 From: Jordy van Zeeland Date: Fri, 16 Aug 2024 16:27:58 +0200 Subject: [PATCH] preparing the package --- src/Core/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/router.php b/src/Core/router.php index afd9249..9f1e5d8 100644 --- a/src/Core/router.php +++ b/src/Core/router.php @@ -29,7 +29,7 @@ class Router{ if(array_key_exists($this->uri, $routes)){ list($controller, $method) = explode('@', $routes[$this->uri]); - $controllerPath = __DIR__ . '/../app/controllers/' . $controller . '.php'; + $controllerPath = $_SERVER['DOCUMENT_ROOT'] . '/app/controllers/' . $controller . '.php'; if(file_exists($controllerPath)){ require $controllerPath;