Nette\Http\UrlScript::getBasePath PHP Method

getBasePath() public method

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