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'; $views['error'] = 'Views/HTML/error.php';
$_SERVER['BASE_URI'] = ''; $_SERVER['BASE_URI'] = '';
$url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$url = "https://$_SERVER[HTTP_HOST]"; echo "URL : ".$url;
echo $url; $newUrl=parse_url($url, PHP_URL_PATH);
$container_name = basename(parse_url($url, PHP_URL_PATH)); echo "NewURL : ".$newUrl;
echo $container_name; $container_name = basename($newUrl);
echo "Container : ".$container_name;
$controller['Candidate'] = 'ControllerCandidate'; $controller['Candidate'] = 'ControllerCandidate';

Loading…
Cancel
Save