abf1649b
andryeyev
Чистая установка ...
|
1
|
<?php
|
f603f834
andryeyev
Итерация 4 (SEO)
|
2
|
use yii\web\UrlManager;
|
abf1649b
andryeyev
Чистая установка ...
|
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$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',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'frontend\controllers',
'components' => [
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
],
|
9da32470
Administrator
routs
|
20
21
22
23
24
25
26
|
'request'=>[
'class' => 'common\components\Request',
'web'=> '/frontend/web'
],
|
abf1649b
andryeyev
Чистая установка ...
|
27
28
29
30
31
32
33
34
35
36
37
38
|
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
|
bb7d15c5
andryeyev
Итерация 3 (Templ...
|
39
|
'urlManager' => [
|
f603f834
andryeyev
Итерация 4 (SEO)
|
40
|
'baseUrl' => '/',
|
bb7d15c5
andryeyev
Итерация 3 (Templ...
|
41
|
'enablePrettyUrl' => true,
|
f603f834
andryeyev
Итерация 4 (SEO)
|
42
43
|
'showScriptName' => false,
'rules' => [
|
9da32470
Administrator
routs
|
44
|
|
f603f834
andryeyev
Итерация 4 (SEO)
|
45
|
]
|
bb7d15c5
andryeyev
Итерация 3 (Templ...
|
46
|
],
|
abf1649b
andryeyev
Чистая установка ...
|
47
48
|
],
'params' => $params,
|
f603f834
andryeyev
Итерация 4 (SEO)
|
49
|
];
|