PHP code example of alisson-nascimento / cakephp-plugin-auditoria
1. Go to this page and download the library: Download alisson-nascimento/cakephp-plugin-auditoria 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/ */
alisson-nascimento / cakephp-plugin-auditoria 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('Auditoria.Logger');
}
}