helpers\BaseUrl home()

home() public static method

Returns the home URL.

public static string home ( $scheme = false )
$scheme boolean|string

The URI scheme to use for the returned URL:

  • false (default): returning a relative URL.
  • true: returning an absolute base URL whose scheme is the same as that in yii\web\UrlManager::$hostInfo.
  • string: returning an absolute URL with the specified scheme (either http or https).
return string

Home URL

doc_Yii
2016-10-30 17:05:33
Comments
Leave a Comment

Please login to continue.