| Current Path : /var/www/html/school/backend/config/ |
| Current File : /var/www/html/school/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',
'timeZone' => 'Asia/Kuala_Lumpur',
'name' => 'MYDESK CLOUD | CONTENT MANAGEMENT SYSTEM (CMS)',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'bootstrap' => ['log'],
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module']
],
'components' => [
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'loginUrl' => array('site/login'),
'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',
],
],
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\PathController',
'access' => ['@'],
'root' => [
'path' => 'files',
'name' => 'Files'
],
]
],
'aliases' => [
'@frontend' => '/ept/www/index.php',
],
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\Controller',
'access' => ['@'],
'disabledCommands' => ['netmount'],
'roots' => [
[
'baseUrl' => '@web',
'basePath' => '@webroot',
'path' => 'files',
'name' => 'Files'
],
],
]
],
'params' => $params,
];