PHP code example of thanhvocse / history-plugin
1. Go to this page and download the library: Download thanhvocse/history-plugin 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/ */
thanhvocse / history-plugin example snippets
class Users extends Controller
{
public $implement = [
\Backend\Behaviors\FormController::class,
\Backend\Behaviors\ListController::class,
\Backend\Behaviors\RelationController::class,
\ThanhVoCSE\History\Behaviors\HistoryController::class,
];
public $formConfig = 'config_form.yaml';
public $listConfig = 'config_list.yaml';
public $relationConfig = 'config_relation.yaml';
}
<?= $this->formRenderPreview()
php artisan plugin:install ThanhVoCSE.History