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

https://github.com/pingzidev/yii2-admin-log


https://github.com/pingzidev/yii2-admin-log

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

          

yii2-admin-log
============
yii2 admin log extention

Installation
------------

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

Either run

```
php composer.phar require --prefer-dist vita2333/yii2-admin-log "^1.0.0"
```

or add

```
"vita2333/yii2-admin-log": "^1.0.0"
```

to the require section of your `composer.json` file.

Usage
-----

Once the extension is installed, simply use it in your code by :

```php

class BaseController extends \yii\web\Controller {

/**
* @inheritdoc
*/
public function behaviors()
{
$behaviors = parent::behaviors();
$behaviors['admin-log'] = [
'class' => AdminLogBehavior::class,
];

return $behaviors;
}
}

```