Voodoo\Core\Env::getUrl PHP 메소드

getUrl() 공개 정적인 메소드

Get the domain url
public static getUrl ( ) : string
리턴 string
    public static function getUrl()
    {
        $domain = "http";
        $domain .= self::isHttps() ? "s" : "";
        $domain .= "://" . self::getHostName();
        return $domain;
    }

Usage Example

예제 #1
0
 /**
  * Return the site url itself
  *
  * @uses    : To get the site url
  * @example : http://mysite.com/
  * @return string
  */
 public function getSiteUrl()
 {
     return Env::getUrl();
 }