public function getUrl(array $new_params = [])
    {
        if (null !== $query_string = $this->getQueryString($new_params)) {
            $query_string = '?' . $query_string;
        }
        $request = Request::instance();
        return $request->getSchemeAndHttpHost()
        . $request->getBaseUrl()
        . $request->getPathInfo()
        . $query_string;
    }
public function getUrl(array $new_params = [])
    {
        if (null !== $query_string = $this->getQueryString($new_params)) {
            $query_string = '?' . $query_string;
        }
        $request = Request::instance();
        return $request->getSchemeAndHttpHost()
        . $request->getBaseUrl()
        . $request->getPathInfo()
        . $query_string;
    }
public function getUrl ( array $ new_params = [ ] ) { if ( null !== $ query_string = $ this -> getQueryString ( $ new_params ) ) { $ query_string = '?' . $ query_string ; } $ request = Request :: instance ( ) ; return $ request -> getSchemeAndHttpHost ( ) . $ request -> getBaseUrl ( ) . $ request -> getPathInfo ( ) . $ query_string ; }
Returns current URL extended by specified GET parameters.

@param array $new_params
@return string
Returns current URL extended by specified GET parameters .