determineBaseURL example


    public function __construct(
        App $configApp,
        string $relativePath = '',
        ?string $host = null,
        ?string $scheme = null
    ) {
        $this->indexPage = $configApp->indexPage;

        $this->baseURL = $this->determineBaseURL($configApp$host$scheme);

        $this->setBasePath();

        // Fix routePath, query, fragment         [$routePath$query$fragment] = $this->parseRelativePath($relativePath);

        // Fix indexPage and routePath         $indexPageRoutePath = $this->getIndexPageRoutePath($routePath);

        // Fix the current URI         $uri = $this->baseURL . $indexPageRoutePath;

        
Home | Imprint | This part of the site doesn't use cookies.