From 273f34a188952962494c5c4d3b29e22f7952bb41 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Mon, 3 Apr 2023 16:43:29 +0200 Subject: [PATCH] Try to display container name --- Source/Config/config.php | 4 ++++ Source/Controller/FrontController.php | 1 + 2 files changed, 5 insertions(+) diff --git a/Source/Config/config.php b/Source/Config/config.php index f9cdd73..346c678 100644 --- a/Source/Config/config.php +++ b/Source/Config/config.php @@ -13,11 +13,15 @@ $views['responses'] = 'Views/HTML/responses.php'; $views['thanks'] = 'Views/HTML/thanks.php'; $views['error'] = 'Views/HTML/error.php'; +/* if (empty($_ENV['CONTAINER_NAME'])){ $_SERVER['BASE_URI'] = ''; }else{ $_SERVER['BASE_URI'] = $_ENV['CONTAINER_NAME']; } +*/ +$_SERVER['BASE_URI'] = ''; + $url = $_SERVER['PHP_SELF']; diff --git a/Source/Controller/FrontController.php b/Source/Controller/FrontController.php index 76d152f..c369a1c 100644 --- a/Source/Controller/FrontController.php +++ b/Source/Controller/FrontController.php @@ -22,6 +22,7 @@ class FrontController { $this->router = new AltoRouter(); $this->router->setBasePath($_SERVER['BASE_URI']); + echo "container =".$_ENV['CONTAINER_NAME']; $this->mapRoutes(); $this->rights = array ( 'Candidate' => array('ControllerCandidate'),