1. Go to this page and download the library: Download remp/crm-users-module 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/ */
remp / crm-users-module example snippets
use Crm\AdminModule\Presenters\AdminPresenter;
class ExampleAdminPresenter extends AdminPresenter {
/**
* @admin-access-level read
*/
public function renderDefault()
{
}
/**
* @admin-access-level write
*/
public function renderEdit()
{
}
}
public function registerEventHandlers(\League\Event\Emitter $emitter)
{
// ...
$emitter->addListener(
\Crm\UsersModule\Events\UserSignInEvent::class,
$this->getInstance(\Crm\UsersModule\Events\SecureAccessSignInEventHandler::class)
);
);