https://github.com/pingzidev/yii2-admin-log
https://github.com/pingzidev/yii2-admin-log
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pingzidev/yii2-admin-log
- Owner: PingziDev
- Created: 2019-04-09T09:30:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T02:14:51.000Z (about 7 years ago)
- Last Synced: 2025-02-13T07:37:23.893Z (over 1 year ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;
}
}
```