2017 © Pedro Peláez
 

yii2-extension yii2-admin-log

admin backend operating the mysql log

image

crazephper/yii2-admin-log

admin backend operating the mysql log

  • Tuesday, November 14, 2017
  • by crazePhper
  • Repository
  • 0 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

管理后台操作mysql日志 --测试发布一个包

admin backend operating the mysql log, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist easydowork/yii2-admin-log "*"

or add, (*4)

"easydowork/yii2-admin-log": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

//main.php 配置文件 添加如下代码
'controllerMap'=>[
    'adminlog'=>[
        'class'=>'adminlog\controllers\AdminLogController',
    ]
],
'on beforeRequest' => function($event) {
    \yii\base\Event::on(\yii\db\BaseActiveRecord::className(), \yii\db\BaseActiveRecord::EVENT_AFTER_INSERT, ['adminlog\models\AdminLog', 'write']);
    \yii\base\Event::on(\yii\db\BaseActiveRecord::className(), \yii\db\BaseActiveRecord::EVENT_AFTER_UPDATE, ['adminlog\models\AdminLog', 'write']);
    \yii\base\Event::on(\yii\db\BaseActiveRecord::className(), \yii\db\BaseActiveRecord::EVENT_AFTER_DELETE, ['adminlog\models\AdminLog', 'write']);
},

访问 www.url.com/admin-log, (*7)

The Versions

14/11 2017

dev-master

9999999-dev

admin backend operating the mysql log

  Sources   Download

BSD-2-Clause

The Requires

 

by composer require crazephper/yii2-admin-log

extension yii2

13/11 2017

1.0

1.0.0.0

admin backend operating the mysql log

  Sources   Download

BSD-2-Clause

The Requires

 

by composer require crazephper/yii2-admin-log

extension yii2