public static function getPath()
    {
        $uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
        if (strpos($uri, '?') > 0) {
            $uri = substr($uri, 0, strpos($uri, '?'));
        }
        $uri = preg_replace("/^\\/(.*)$/", "$1", $uri);
        $uri = preg_replace("/^(.*)\\/$/", "$1", $uri);
        return $uri;
    }