Try to get the container name 7
continuous-integration/drone/push Build is passing Details

master
dohodin 2 years ago
parent b70338974e
commit 80a95da97c

@ -15,16 +15,15 @@ $views['error'] = 'Views/HTML/error.php';
$_SERVER['BASE_URI'] = '';
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
$host = $_SERVER['HTTP_HOST'];
$uri = $_SERVER['REQUEST_URI'];
$url = $protocol . "://" . $host . $uri;
echo "URL : ".$url." \n ";
$url = $_SERVER['PHP_SELF'];
echo "URL : ".$url;
/*
$newUrl=parse_url($url, PHP_URL_PATH);
echo "NewURL : ".$newUrl." \n ";
echo "NewURL : ".$newUrl;
$container_name = basename($newUrl);
echo "Container : ".$container_name;
*/
$controller['Candidate'] = 'ControllerCandidate';
$controller['Admin'] = 'ControllerAdmin';

Loading…
Cancel
Save