PHP code example of patipark / yii2-log-field
1. Go to this page and download the library: Download patipark/yii2-log-field 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-field example snippets
class YourModel extends \yii\db\ActiveRecord
{
public $ignoreLogAttributes = ['created_by', 'created_at', 'updated_by', 'updated_at'];
public function behaviors()
{
return [
\patipark\yii2logfield\LogBehavior::class,
......
......
];
}
public $ignoreLogAttributes = ['created_by', 'created_at', 'updated_by', 'updated_at'];