1755c393
Yarik
Basic template in...
|
1
|
<?php
|
a42025b8
Yarik
Sitemap and slugb...
|
2
3
|
use artbox\core\models\Page;
use common\components\Sitemap;
|
6966d71b
Yarik
Makeup
|
4
5
|
use yii\web\UrlManager;
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$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',
'homeUrl' => '/admin',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'bootstrap' => [ 'log' ],
|
40ab364c
Yarik
Page
|
19
|
'controllerMap' => [
|
9576f402
Yarik
Namespaces and al...
|
20
21
|
'profile' => 'artbox\core\controllers\ProfileController',
'page' => 'artbox\core\controllers\PageController',
|
15b8e84d
Yarik
Different Seo tasks
|
22
23
|
'alias' => 'artbox\core\controllers\AliasController',
'seo' => 'artbox\core\controllers\SeoController',
|
9576f402
Yarik
Namespaces and al...
|
24
|
'feedback' => 'artbox\core\controllers\FeedbackController',
|
8ea2bb09
Alexey Boroda
-Settings started
|
25
|
],
|
219af3d1
Alexey Boroda
-Image manager ready
|
26
27
|
'modules' => [
'imagemanager' => [
|
40ab364c
Yarik
Page
|
28
29
30
|
'class' => 'noam148\imagemanager\Module',
'canUploadImage' => true,
'canRemoveImage' => function () {
|
219af3d1
Alexey Boroda
-Image manager ready
|
31
32
33
|
return true;
},
'setBlameableBehavior' => false,
|
40ab364c
Yarik
Page
|
34
|
'cssFiles' => [
|
219af3d1
Alexey Boroda
-Image manager ready
|
35
36
37
38
|
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
],
],
],
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
39
|
'components' => [
|
6966d71b
Yarik
Makeup
|
40
|
'assetManager' => [
|
3e16e218
Yarik
Admin fixes
|
41
|
'bundles' => [
|
219af3d1
Alexey Boroda
-Image manager ready
|
42
|
'yiister\gentelella\assets\ThemeAsset' => [
|
543b9b1c
Yarik
Composer ready
|
43
44
45
|
'basePath' => '@webroot',
'baseUrl' => '@web',
'js' => [
|
219af3d1
Alexey Boroda
-Image manager ready
|
46
47
|
'js/custom.js',
],
|
543b9b1c
Yarik
Composer ready
|
48
|
'css' => [
|
219af3d1
Alexey Boroda
-Image manager ready
|
49
50
51
52
|
'css/custom.css',
],
],
],
|
3e16e218
Yarik
Admin fixes
|
53
|
'appendTimestamp' => true,
|
219af3d1
Alexey Boroda
-Image manager ready
|
54
|
],
|
6966d71b
Yarik
Makeup
|
55
|
'imagemanager' => [
|
40ab364c
Yarik
Page
|
56
57
58
|
'class' => 'noam148\imagemanager\components\ImageManagerGetPath',
'mediaPath' => dirname(dirname(__DIR__)) . '/storage',
'cachePath' => 'assets/images',
|
219af3d1
Alexey Boroda
-Image manager ready
|
59
60
61
|
'useFilename' => true,
'absoluteUrl' => false,
],
|
6966d71b
Yarik
Makeup
|
62
|
'request' => [
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
63
64
65
|
'csrfParam' => '_csrf-backend',
'baseUrl' => '/admin',
],
|
6966d71b
Yarik
Makeup
|
66
|
'user' => [
|
9576f402
Yarik
Namespaces and al...
|
67
|
'identityClass' => 'artbox\core\models\User',
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
68
69
70
71
|
'enableAutoLogin' => true,
'identityCookie' => [
'name' => '_identity-backend',
'httpOnly' => true,
|
1755c393
Yarik
Basic template in...
|
72
73
|
],
],
|
6966d71b
Yarik
Makeup
|
74
|
'session' => [
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
75
76
77
|
// this is the name of the session cookie used for login on the backend
'name' => 'advanced-backend',
],
|
6966d71b
Yarik
Makeup
|
78
|
'log' => [
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
79
80
81
82
83
84
85
86
87
88
89
|
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => [
'error',
'warning',
],
],
],
],
|
6966d71b
Yarik
Makeup
|
90
|
'errorHandler' => [
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
91
92
|
'errorAction' => 'site/error',
],
|
6966d71b
Yarik
Makeup
|
93
94
95
96
97
98
99
100
|
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [],
],
'urlManagerFrontend' => [
'class' => UrlManager::className(),
'baseUrl' => '/',
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
101
102
103
|
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [],
|
1755c393
Yarik
Basic template in...
|
104
|
],
|
a42025b8
Yarik
Sitemap and slugb...
|
105
106
107
108
109
110
111
112
113
114
115
116
|
'sitemap' => [
'class' => Sitemap::className(),
'entities' => [
[
'class' => Page::className(),
'conditions' => [
[ 'in_menu' => 1 ],
],
'url' => 'site/page',
],
],
],
|
1755c393
Yarik
Basic template in...
|
117
|
],
|
b66c9c5a
Alexey Boroda
-Admin template s...
|
118
119
|
'params' => $params,
];
|