PHP code example of barbierp35 / reconnexion-bar
1. Go to this page and download the library: Download barbierp35/reconnexion-bar 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/ */
barbierp35 / reconnexion-bar example snippets
$this->addPlugin('ReconnexionBar');
public function initialize(): void
{
parent::initialize();
$this->loadComponent('ReconnexionBar.Reconnexion');
}
/**
* Action to connect on another account
*/
public function connectOtherAccount($userId)
{
$user = $this->Users->get($userId);
$this->Reconnexion->connectOtherAccount($user);
}
/**
* Action to reconnect on the parent account
*/
public function reconnectParentAccount()
{
$this->Reconnexion->reconnectParentAccount();
}
public function logout()
{
$this->Reconnexion->deleteReconnectSession();
...
}