Commit 5420517e by Alexander Makarov

Added Url::rememberReturnUrl

parent e758608a
...@@ -72,5 +72,13 @@ class BaseUrl ...@@ -72,5 +72,13 @@ class BaseUrl
{ {
return Yii::$app->getRequest()->getBaseUrl() . '/' . $url; return Yii::$app->getRequest()->getBaseUrl() . '/' . $url;
} }
/**
* Sets current URL as return URL
*/
public function rememberReturnUrl()
{
Yii::$app->user->setReturnUrl(Yii::$app->getRequest()->getUrl());
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment