public function internalCreateAbsoluteUrl($params, $scheme = null)
    {
        $params = (array) $params;
        $url = $this->internalCreateUrl($params);
        if (strpos($url, '://') === false) {
            $url = $this->getHostInfo() . $url;
        }
        if (is_string($scheme) && ($pos = strpos($url, '://')) !== false) {
            $url = $scheme . substr($url, $pos);
        }
        return $url;
    }
public function internalCreateAbsoluteUrl($params, $scheme = null)
    {
        $params = (array) $params;
        $url = $this->internalCreateUrl($params);
        if (strpos($url, '://') === false) {
            $url = $this->getHostInfo() . $url;
        }
        if (is_string($scheme) && ($pos = strpos($url, '://')) !== false) {
            $url = $scheme . substr($url, $pos);
        }
        return $url;
    }
public function internalCreateAbsoluteUrl ( $ params , $ scheme = null ) { $ params = ( array ) $ params ; $ url = $ this -> internalCreateUrl ( $ params ) ; if ( strpos ( $ url , '://' ) === false ) { $ url = $ this -> getHostInfo ( ) . $ url ; } if ( is_string ( $ scheme ) && ( $ pos = strpos ( $ url , '://' ) ) !== false ) { $ url = $ scheme . substr ( $ url , $ pos ) ; } return $ url ; }
Create absolute url from the given route params.

@param string|array $params The see createUrl
@param boolean $scheme Whether to use absolute scheme path or not.
@return string The created url
Create absolute url from the given route params .