Ip\Request::_isWebsiteRoot PHP Méthode

_isWebsiteRoot() public méthode

public _isWebsiteRoot ( ) : boolean
Résultat boolean true if current url is pointing to website root or one of the languages
    public function _isWebsiteRoot()
    {
        $relativePath = $this->getRelativePath();
        if (!$relativePath || (empty($relativePath[0]) || $relativePath[0] == '?' || $relativePath == 'index.php')) {
            return true;
        }
        return false;
    }