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

master
dohodin 2 years ago
parent 524f98b3ca
commit 76ebc3a884

@ -14,11 +14,12 @@ $views['thanks'] = 'Views/HTML/thanks.php';
$views['error'] = 'Views/HTML/error.php';
$_SERVER['BASE_URI'] = '';
$url = "https://$_SERVER[HTTP_HOST]";
echo $url;
$container_name = basename(parse_url($url, PHP_URL_PATH));
echo $container_name;
$url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
echo "URL : ".$url;
$newUrl=parse_url($url, PHP_URL_PATH);
echo "NewURL : ".$newUrl;
$container_name = basename($newUrl);
echo "Container : ".$container_name;
$controller['Candidate'] = 'ControllerCandidate';

Loading…
Cancel
Save