PHP code example of baka / blameable
1. Go to this page and download the library: Download baka/blameable 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/ */
baka / blameable example snippets
use Baka\Blameable\BlameableTrait;
class Leads extends Phalcon\Mvc\Model
{
use BlameableTrait;
/**
* Initialize
*/
public function initialize()
{
$this->keepSnapshots(true);
$this->addBehavior(new \Baka\Blameable\Blameable());
}
}