public function absolute($relative = null)
    {
        $host = $this->getHost();

        if (null !== $relative) {
            $relative = '/' . ltrim($relative, '/');
        }

        return $host . $relative;
    }
public function absolute($relative = null)
    {
        $host = $this->getHost();

        if (null !== $relative) {
            $relative = '/' . ltrim($relative, '/');
        }

        return $host . $relative;
    }
public function absolute ( $ relative = null ) { $ host = $ this -> getHost ( ) ; if ( null !== $ relative ) { $ relative = '/' . ltrim ( $ relative , '/' ) ; } return $ host . $ relative ; }
Gets the absolute address.

@param null|string $relative Optional; the relative address

@return string Absolute address
Gets the absolute address .