yii2 登录后跳转回登录前请求的页面?

Posted on

yii2 登录后跳转回登录前请求的页面?

回复内容:

yii2 登录后跳转回登录前请求的页面?

就执行goBack就行了啊:

return $this->goBack();

可以借鉴 laravel 的实现
return redirect()->intended()

该文章由WP-AutoPost插件自动采集发布

原文地址:http://www.php.cn/php-weizijiaocheng-330593.html

Leave a Reply

Your email address will not be published. Required fields are marked *