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['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'];

@ -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'),

Loading…
Cancel
Save