Voodoo\Core\Env::getUrl PHP Method

getUrl() public static method

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

Usage Example

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();
 }