public function getPathInfo()
    {
        if ($this->pathInfo === null) {
            $end = strpos($this->uri, '?');

            if ($end === false) {
                $this->pathInfo = $this->uri;
            }else{
                $this->pathInfo = substr($this->uri, 0, $end);
            }

            if (empty($this->pathInfo)) {
                $this->pathInfo = '/';
            }
        }
        
        return $this->pathInfo;
    }
public function getPathInfo()
    {
        if ($this->pathInfo === null) {
            $end = strpos($this->uri, '?');

            if ($end === false) {
                $this->pathInfo = $this->uri;
            }else{
                $this->pathInfo = substr($this->uri, 0, $end);
            }

            if (empty($this->pathInfo)) {
                $this->pathInfo = '/';
            }
        }
        
        return $this->pathInfo;
    }
public function getPathInfo ( ) { if ( $ this -> pathInfo === null ) { $ end = strpos ( $ this -> uri , '?' ) ; if ( $ end === false ) { $ this -> pathInfo = $ this -> uri ; } else { $ this -> pathInfo = substr ( $ this -> uri , 0 , $ end ) ; } if ( empty ( $ this -> pathInfo ) ) { $ this -> pathInfo = '/' ; } } return $ this -> pathInfo ; }
Get the path info
which is the uri without the query parameters
@return string
Get the path info which is the uri without the query parameters