web\UrlManager getHostInfo()

getHostInfo() public method

Returns the host info that is used by createAbsoluteUrl() to prepend to created URLs.

public string getHostInfo ( )
return string

The host info (e.g. "http://www.example.com") that is used by createAbsoluteUrl() to prepend to created URLs.

throws yii\base\InvalidConfigException

if running in console application and $hostInfo is not configured.

doc_Yii
2016-10-30 17:17:01
Comments
Leave a Comment

Please login to continue.