vita2333/yii2-admin-log

yii2 admin log extension

Installs: 89

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Type:yii2-extension

1.0.2 2019-04-10 02:14 UTC

This package is auto-updated.

Last update: 2025-07-10 16:55:59 UTC


README

yii2 admin log extention

Installation

The preferred way to install this extension is through composer.

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 :

class BaseController extends \yii\web\Controller {

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

        return $behaviors;
    }
 }