web\User getReturnUrl()

getReturnUrl() public method

Returns the URL that the browser should be redirected to after successful login.

This method reads the return URL from the session. It is usually used by the login action which may call this method to redirect the browser to where it goes after successful authentication.

See also loginRequired().

public string getReturnUrl ( $defaultUrl = null )
$defaultUrl string|array

The default return URL in case it was not set previously. If this is null and the return URL was not set previously, yii\web\Application::$homeUrl will be redirected to. Please refer to setReturnUrl() on accepted format of the URL.

return string

The URL that the user should be redirected to after login.

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

Please login to continue.