PHP code example of yii2mod / yii2-timezone
1. Go to this page and download the library: Download yii2mod/yii2-timezone 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/ */
yii2mod / yii2-timezone example snippets
'bootstrap' => [
'timezone'
]
.....
'components' => [
'timezone' => [
'class' => 'yii2mod\timezone\Timezone',
'actionRoute' => '/site/timezone' //optional param - full path to page must be specified
],
]
public function actions()
{
return [
'timezone' => [
'class' => 'yii2mod\timezone\TimezoneAction',
],
];
}
php composer.phar