dlds/yii2-return-url
最新稳定版本:1.0.1
Composer 安装命令:
composer require dlds/yii2-return-url
包简介
Yii2 ReturnUrl filter
关键字:
README 文档
README
Keeps current URL in session for controller actions so we can return to it if needed.
This is Yii2 port of set-return-url-filter extension.
Install via Composer
In "composer.json" your project, add the following lines:
"require": { ... "dlds/yii2-return-url": "*" },
Then update your project:
php composer.phar update --prefer-dist
Usage
In your controller add ReturnUrl filter to behaviors:
public function behaviors() { return [ 'returnUrl' => [ 'class' => 'dlds\returnUrl\ReturnUrl', ], ]; }
For access to previously visited url:
Yii::$app->user->getReturnUrl();
License
yii2-return-url is released under the BSD License. See LICENSE.md file for details.
统计信息
- 总下载量: 2.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-06