承接 fbi/yii2-admin-logging 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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');

sanwkj@163.com

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-09