web\Request getHostName()

getHostName() public method (available since version 2.0.10)

Returns the host part of the current request URL.

Value is calculated from current hostInfo property.

See also getHostInfo().

public string|null getHostName ( )
return string|null

Hostname part of the request URL (e.g. www.yiiframework.com)

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.