PHP code example of richardhj / contao-model-events
1. Go to this page and download the library: Download richardhj/contao-model-events 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/ */
richardhj / contao-model-events example snippets
use Contao\Model;
class MyTableModel extends Model
{
use Contao\Model\DispatchModelEventsTrait;
/**
* Table name
*
* @var string
*/
protected static $strTable = 'tl_my_table';
}