Nette\Http\UrlScript::getBasePath PHP Méthode

getBasePath() public méthode

Returns the base-path.
public getBasePath ( ) : string
Résultat string
    public function getBasePath()
    {
        $pos = strrpos($this->getScriptPath(), '/');
        return $pos === FALSE ? '' : substr($this->getPath(), 0, $pos + 1);
    }