PHP code example of pentajeu / yii-timeout-dialog
1. Go to this page and download the library: Download pentajeu/yii-timeout-dialog 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/ */
pentajeu / yii-timeout-dialog example snippets
$this->widget('ext.timeout-dialog.ETimeoutDialog', array(
// Get timeout settings from session settings.
'timeout' => Yii::app()->getSession()->getTimeout(),
// Uncomment to test.
// Dialog should appear 20 sec after page load.
//'timeout' => 80,
'keep_alive_url' => $this->createUrl('/site/keepalive'),
'logout_redirect_url' => $this->createUrl('/site/logout'),
));