src/Url/Url.php
public static function getHost($pPath = '', $pHost = '')
    {
        if (! $pHost) {
            $pHost = $_SERVER['HTTP_HOST'];
        }

        return self::getProtocol() . $pHost . $pPath;
    }
public static function getHost($pPath = '', $pHost = '')
    {
        if (! $pHost) {
            $pHost = $_SERVER['HTTP_HOST'];
        }

        return self::getProtocol() . $pHost . $pPath;
    }
public static function getHost ( $ pPath = '' , $ pHost = '' ) { if ( ! $ pHost ) { $ pHost = $ _SERVER [ 'HTTP_HOST' ] ; } return self :: getProtocol ( ) . $ pHost . $ pPath ; }
Get the base URL with host name and protocol.

@return string
Get the base URL with host name and protocol .