Your IP : 216.73.216.79


Current Path : /var/www/html/sprm/backend/config/
Upload File :
Current File : /var/www/html/sprm/backend/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-backend',
    'name' => 'SISTEM PENGURUSAN KANDUNGAN | CONTENT MANAGEMENT SYSTEM',
    'basePath' => dirname(__DIR__),
    'controllerNamespace' => 'backend\controllers',
    'bootstrap' => ['log'],
    'modules' => [
        'mainmenu' => [
            'class' => 'backend\modules\mainmenu\Module',
        ],
        'gridview' => [
            'class' => '\kartik\grid\Module']
    ],
    'components' => [
        'user' => [
            'identityClass' => 'common\models\UserDefault',
            'authTimeout' => 900,
            //'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/errors',
        ], 'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'useFileTransport' => false,
            'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => '10.25.161.251',
                'username' => '',
                'password' => '',
                'port' => '25',
                'encryption' => '',
            ],
        ],
    ],
    // 'controllerMap' => [
    //     'elfinder' => [
    //         'class' => 'mihaildev\elfinder\PathController',
    //         'access' => ['@'],
    //         'root' => [
    //             'path' => 'files',
    //             'name' => 'Files'
    //         ],
    //     ]
    // ],
    
    'sourceLanguage'=>'00',
    'language'=>'en',
    
    // 'aliases' => [
    //     '@frontend' => '/ros/www/index.php',
    // ],
    // 'controllerMap' => [
    //     'elfinder' => [
    //         'class' => 'mihaildev\elfinder\Controller',
    //         'access' => ['@'],
    //         'disabledCommands' => ['netmount'],
    //         'roots' => [
    //             [
    //                 'baseUrl' => '@web',
    //                 'basePath' => '@webroot',
    //                 'path' => 'files',
    //                 'name' => 'Files'
    //             ],
    //         ],
    //     ]
    // ],
    'params' => $params,
];