public function getDomain() {
		$fullBaseUrl = Router::fullBaseUrl();
		if (!empty($fullBaseUrl)) {
			$domain = parse_url($fullBaseUrl, PHP_URL_HOST);
		} else {
			$domain = 'localhost';
		}

		return $domain;
	}
public function getDomain() {
		$fullBaseUrl = Router::fullBaseUrl();
		if (!empty($fullBaseUrl)) {
			$domain = parse_url($fullBaseUrl, PHP_URL_HOST);
		} else {
			$domain = 'localhost';
		}

		return $domain;
	}
public function getDomain ( ) { $ fullBaseUrl = Router :: fullBaseUrl ( ) ; if ( ! empty ( $ fullBaseUrl ) ) { $ domain = parse_url ( $ fullBaseUrl , PHP_URL_HOST ) ; } else { $ domain = 'localhost' ; } return $ domain ; }
Retrun current domain name

@return string Return current domain name.
Retrun current domain name