helpers\BaseUrl base()

base() public static method

Returns the base URL of the current request.

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

The URI scheme to use in the returned base URL:

  • false (default): returning the base URL without host info.
  • true: returning an absolute base URL whose scheme is the same as that in yii\web\UrlManager::$hostInfo.
  • string: returning an absolute base URL with the specified scheme (either http or https).
doc_Yii
2016-10-30 17:05:32
Comments
Leave a Comment

Please login to continue.