protected function getUrl($name, $path = '', $params = array()) {
        $uri = self::getBaseURL($name);
        if ($path) {
            if ($path[0] === '/') {
                $path = substr($path, 1);
            }
            $uri .= $path;
        }
        if ($params) {
            $uri .= '?' . http_build_query($params, null, $this->argSeparator);
        }
        return $uri;
    }