PHP code example of dennis-kashirin / yii2-session-timeout-warning
1. Go to this page and download the library: Download dennis-kashirin/yii2-session-timeout-warning 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/ */
dennis-kashirin / yii2-session-timeout-warning example snippets
[
'bootstrap' => [
[
'class' => \mgcode\sessionWarning\components\SessionWarningBootstrap::className(),
'initMessages' => true,
]
],
];
[
'controllerMap' => [
'session-warning' => [
'class' => 'mgcode\sessionWarning\controllers\SessionWarningController',
],
],
];
<?= \mgcode\sessionWarning\widgets\SessionWarningWidget::widget([
//... Properties ...
]);