Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keygenqt/last-page

Desc test
https://github.com/keygenqt/last-page

extensions yii2

Last synced: about 11 hours ago
JSON representation

Desc test

Awesome Lists containing this project

README

        

Last Page
===================

![GitHub](https://img.shields.io/github/license/keygenqt/yii2-last-page)
![Packagist Downloads](https://img.shields.io/packagist/dt/keygenqt/yii2-last-page)

LastPage lets you get last url.

## Installation

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either add

```
"require": {
"keygenqt/yii2-last-page": "*"
}
```

of your `composer.json` file.

## Usage

All controllers or base controller:

```php
use \keygenqt\lastPage\LastPage;

class BaseController extends LastPage
{
...
```

Get url:

```php
Yii::$app->user->getReturnUrl()
```