PHP code example of formatd / useractionhistory
1. Go to this page and download the library: Download formatd/useractionhistory 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/ */
formatd / useractionhistory example snippets
$this->userActionHistory->addEntry('Edit Backend-User: ' . $user->getName(), $this->request, $user);
if ($lastRequest = $this->userActionHistory->getLastActionRequest('UserManagement->edit')) {
$this->redirectToRequest($lastRequest);
} else {
$this->redirect('index');
}
$this->view->assign('userActionHistoryEntries', $this->userActionHistory->getLastEntries(15, '*->index'));