protected function detectPathInfo()
    {
        $uri = $this->getRequestUri();

        $pathInfo = '/' . trim(substr($uri, strlen($this->getBaseUrl())), '/');

        if (false !== $pos = strpos($pathInfo, '?')) {
            $pathInfo = substr($pathInfo, 0, $pos);
        }
        return $pathInfo;
    }
protected function detectPathInfo()
    {
        $uri = $this->getRequestUri();

        $pathInfo = '/' . trim(substr($uri, strlen($this->getBaseUrl())), '/');

        if (false !== $pos = strpos($pathInfo, '?')) {
            $pathInfo = substr($pathInfo, 0, $pos);
        }
        return $pathInfo;
    }
protected function detectPathInfo ( ) { $ uri = $ this -> getRequestUri ( ) ; $ pathInfo = '/' . trim ( substr ( $ uri , strlen ( $ this -> getBaseUrl ( ) ) ) , '/' ) ; if ( false !== $ pos = strpos ( $ pathInfo , '?' ) ) { $ pathInfo = substr ( $ pathInfo , 0 , $ pos ) ; } return $ pathInfo ; }
Detect the path info for the request

@return string
Detect the path info for the request