web\Request getUrl()

getUrl() public method

Returns the currently requested relative URL.

This refers to the portion of the URL that is after the $hostInfo part. It includes the $queryString part if any.

public string getUrl ( )
return string

The currently requested relative URL. Note that the URI returned is URL-encoded.

throws yii\base\InvalidConfigException

if the URL cannot be determined due to unusual server configuration

doc_Yii
2016-10-30 17:15:57
Comments
Leave a Comment

Please login to continue.