Try to display container name
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 86f91a5140
commit 273f34a188

@ -13,11 +13,15 @@ $views['responses'] = 'Views/HTML/responses.php';
$views['thanks'] = 'Views/HTML/thanks.php'; $views['thanks'] = 'Views/HTML/thanks.php';
$views['error'] = 'Views/HTML/error.php'; $views['error'] = 'Views/HTML/error.php';
/*
if (empty($_ENV['CONTAINER_NAME'])){ if (empty($_ENV['CONTAINER_NAME'])){
$_SERVER['BASE_URI'] = ''; $_SERVER['BASE_URI'] = '';
}else{ }else{
$_SERVER['BASE_URI'] = $_ENV['CONTAINER_NAME']; $_SERVER['BASE_URI'] = $_ENV['CONTAINER_NAME'];
} }
*/
$_SERVER['BASE_URI'] = '';
$url = $_SERVER['PHP_SELF']; $url = $_SERVER['PHP_SELF'];

@ -22,6 +22,7 @@ class FrontController
{ {
$this->router = new AltoRouter(); $this->router = new AltoRouter();
$this->router->setBasePath($_SERVER['BASE_URI']); $this->router->setBasePath($_SERVER['BASE_URI']);
echo "container =".$_ENV['CONTAINER_NAME'];
$this->mapRoutes(); $this->mapRoutes();
$this->rights = array ( $this->rights = array (
'Candidate' => array('ControllerCandidate'), 'Candidate' => array('ControllerCandidate'),

Loading…
Cancel
Save