diff --git a/Source/Config/config.php b/Source/Config/config.php index f9b9451..31cb4ca 100644 --- a/Source/Config/config.php +++ b/Source/Config/config.php @@ -15,6 +15,12 @@ $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; + + $controller['Candidate'] = 'ControllerCandidate'; $controller['Admin'] = 'ControllerAdmin'; diff --git a/Source/index.php b/Source/index.php index cc282ac..9a80a32 100644 --- a/Source/index.php +++ b/Source/index.php @@ -7,10 +7,6 @@ require_once(__DIR__.'/Config/Autoload.php'); require_once(__DIR__.'/Config/config.php'); require_once(__DIR__.'/Config/Autoload.php'); Autoload::charger(); -$container_name = getenv('HOSTNAME'); -$url = "$_SERVER[REQUEST_URI]"; -echo $url; - session_start();