fbi/yii2-admin-logging
最新稳定版本:1.0.2
Composer 安装命令:
composer require fbi/yii2-admin-logging
包简介
yii2的管理员操作日志扩展
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require fbi/yii2-admin-logging "*"
for dev-master
php composer.phar require fbi/yii2-admin-logging "dev-master"
or add
"fbi/yii2-admin-logging": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
return [
'components' => [
....
'user' => [
'class'=>'fbi\adminLogging\components\User',
....
]
....
'request' => [
'class'=>'fbi\adminLogging\components\Request',
],
];
and change your backend contorllers like follows:
....
use fbi\adminLogging\controllers\Controller;//this line
....
class SiteController extends Controller{
...
}
and if you want to log something in the application:
Yii::$app->user->log('mixed variable,anything you want to log');
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-09