PHP code example of patipark / yii2-log

1. Go to this page and download the library: Download patipark/yii2-log library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

patipark / yii2-log example snippets


class YourModel extends \yii\db\ActiveRecord
{
    public $ignoreLogAttributes = ['created_by', 'created_at', 'updated_by', 'updated_at'];
    
    public function behaviors()
    {
        return [
            \patipark\yii2log\LogBehavior::class,
            ......
            ......
        ];
    }

public $ignoreLogAttributes = ['created_by', 'created_at', 'updated_by', 'updated_at'];