web\User setReturnUrl()

setReturnUrl() public method

Remembers the URL in the session so that it can be retrieved back later by getReturnUrl().

public void setReturnUrl ( $url )
$url string|array

The URL that the user should be redirected to after login. If an array is given, yii\web\UrlManager::createUrl() will be called to create the corresponding URL. The first element of the array should be the route, and the rest of the name-value pairs are GET parameters used to construct the URL. For example,

['admin/index', 'ref' => 1]
doc_Yii
2016-10-30 17:17:26
Comments
Leave a Comment

Please login to continue.