public function currentPath()
    {
        $requestURI = $this->serverVar('REQUEST_URI');
        $sciptName  = $this->serverVar('SCRIPT_NAME');
        return rtrim(parse_url($requestURI? : $sciptName, PHP_URL_PATH), '/');
    }
public function currentPath()
    {
        $requestURI = $this->serverVar('REQUEST_URI');
        $sciptName  = $this->serverVar('SCRIPT_NAME');
        return rtrim(parse_url($requestURI? : $sciptName, PHP_URL_PATH), '/');
    }
public function currentPath ( ) { $ requestURI = $ this -> serverVar ( 'REQUEST_URI' ) ; $ sciptName = $ this -> serverVar ( 'SCRIPT_NAME' ) ; return rtrim ( parse_url ( $ requestURI ? : $ sciptName , PHP_URL_PATH ) , '/' ) ; }
Get the path of the current request.

@return string
Get the path of the current request .