PHP code example of jeffersonsimaogoncalves / cakephp-auditing

1. Go to this page and download the library: Download jeffersonsimaogoncalves/cakephp-auditing 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/ */

    

jeffersonsimaogoncalves / cakephp-auditing example snippets


// src/Model/Table/ExampleTable.php

class ExampleTable extends Table
{
    /**
     * @param array $config
     *
     * @return void
     */
    public function initialize(array $config)
    {
        parent::initialize($config);

        // Add the behaviour to your table
        $this->addBehavior('JeffersonSimaoGoncalves/Auditing.Logger');
    }
}