| Current Path : /var/www/html/mtdc/frontend/config/ |
| Current File : /var/www/html/mtdc/frontend/config/main.php |
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-frontend',
'timeZone' => 'Asia/Kuala_Lumpur',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'frontend\controllers',
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module',
],
],
'components' => [
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => 'noreply.testemailweb@gmail.com',
'password' => 'zaq1XSW@cde3',
'port' => '587',
'encryption' => 'tls',
],
],
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => [
'name' => '_backendIdentity',
],
],
'session' => [
'name' => 'BACKENDSESSIDBANCI',
'savePath' => __DIR__ . '/../runtime',
],
'request' => [
'cookieValidationKey' => '0okmnji98uhbBANCI',
'csrfParam' => '_backendCSRF',
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'formatter' => [
'class' => 'yii\i18n\Formatter',
'nullDisplay' => '',
],
// 'urlManager' => [
// 'enablePrettyUrl' => true,
// 'showScriptName' => false,
// 'rules' => [
// 'class' => 'yii\rest\UrlRule',
// 'controller' => 'api'
// ],
// ],
],
'params' => $params,
];