Download the PHP package dlds/yii2-return-url without Composer
On this page you can find all versions of the php package dlds/yii2-return-url. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dlds/yii2-return-url
More information about dlds/yii2-return-url
Files in dlds/yii2-return-url
Download dlds/yii2-return-url
More information about dlds/yii2-return-url
Files in dlds/yii2-return-url
Please rate this library. Is it a good library?
Informations about the package yii2-return-url
Yii2 ReturnUrl filter
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.
All versions of yii2-return-url with dependencies
PHP Build Version
Package Version
The package dlds/yii2-return-url contains the following files
Loading the files please wait ....