preparing the package

This commit is contained in:
Jordy van Zeeland 2024-08-16 16:27:58 +02:00
parent c538909b5a
commit f45a16d747
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Router{
if(array_key_exists($this->uri, $routes)){ if(array_key_exists($this->uri, $routes)){
list($controller, $method) = explode('@', $routes[$this->uri]); 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)){ if(file_exists($controllerPath)){
require $controllerPath; require $controllerPath;