Ip\Config::baseUrl PHP 메소드

baseUrl() 공개 메소드

Returns absolute base url.
public baseUrl ( string $protocol = null ) : string
$protocol string 'http:// https:// or //. Current protocol will be used if null
리턴 string
    public function baseUrl($protocol = null)
    {
        $prot = $this->protocolUrl;
        if ($protocol !== null) {
            $prot = $protocol;
        }
        return $prot . $this->config['baseUrl'];
    }