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 |
Please login to continue.