Blame view

common/config/main.php 6.48 KB
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
  <?php

  return [

      'language'      => 'ru',

      'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',

      'controllerMap' => [

  //        'artbox-comment' => [

  //            'class' => \common\modules\comment\Controller::className(),

  //        ],

      ],

      'components' => [

0bfe5701   Administrator   big commti
11
12
13
14
          'cache' => [

              'class' => 'yii\caching\MemCache',

              'keyPrefix' => 'linija_'

          ],

4253cbec   root   first commit
15
16
17
          'sms' => [

              'class' => 'common\components\SmsSender',

          ],

4253cbec   root   first commit
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
  

          'i18n' => [

              'translations' => [

                  '*' => [

                      'class' => 'yii\i18n\PhpMessageSource',

                      'basePath' => '@common/translation',

                      'fileMap' => [

                          'app' => 'app.php',

                          'app/error' => 'error.php',

                      ],

                  ],

                  'app' => [

                      'class' => 'yii\i18n\PhpMessageSource',

                      'basePath' => '@common/translation',

                      'fileMap' => [

                          'app' => 'app.php',

                          'app/error' => 'error.php',

                      ],

                  ],

                  'artbox-comment' => [

                      'class' => 'yii\i18n\PhpMessageSource',

                      'basePath' => '@common/modules/comment/messages',

                      ],

                  ],

          ],

          'artboximage' => [

              'class' => 'common\components\artboximage\ArtboxImage',

              'driver' => 'GD',  //GD or Imagick

              'rootPath' => Yii::getAlias('@storage'),

              'rootUrl' => Yii::getAlias('/storage'),

              'presets' => [

                  'product' => [

                      'resize' => [

                          'width' => 300,

                          'height' => 300,

                          'master' => null

                      ],

                  ],

                  'product_variant' => [

                      'resize' => [

                          'width' => 38,

                          'height' => 38,

                          'master' => null

                      ],

                  ],

d09f430f   Administrator   big commti
63
                  'product_trumb' => [

4253cbec   root   first commit
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
                      'resize' => [

                          'width' => 88,

                          'height' => 88,

                          'master' => null

                      ],

                  ],

                  'product_basket' => [

                      'resize' => [

                          'width' => 100,

                          'height' => 200,

                          'master' => null

                      ],

                  ],

                  'product_view' => [

                      'resize' => [

                          'width' => 392,

                          'height' => 365,

                          'master' => null

                      ],

                  ],

                  'iam' => [

                      'resize' => [

                          'width' => 120,

                          'height' => 240,

                          'master' => null

                      ],

                  ],

                  'slider' => [

                      'resize' => [

2cbb3bdc   Виталий   test commit
93
94
                          'width' => 1920,

                          'height' => 420,

4253cbec   root   first commit
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
                          'master' => null

                      ],

                  ],

                  'brandlist' => [

                      'resize' => [

                          'width' => 128,

                          'height' => 128,

                          'master' => null

                      ],

                  ],

                  'eventlist' => [

                      'resize' => [

                          'width' => 180,

                          'height' => 125,

                          'master' => null

                      ],

                  ],

1da76554   Administrator   big commti
112
113
114
115
116
117
118
119
120
121
122
                  'event_in_product' =>

                      [

                          'resize' => [

                              'width' => 730,

                              'height' => 100,

                              'master' => null

                          ],

                      ],

                  'event_left' =>

                      [

                          'resize' => [

37415bee   Administrator   big commti
123
                              'width' => 1140,

1da76554   Administrator   big commti
124
125
126
                              'master' => null

                          ],

                      ],

4253cbec   root   first commit
127
128
                  'brand_item' => [

                      'resize' => [

ebcad73a   Administrator   big commti
129
130
                          'width' => 125,

                          'height' => 54,

2cbb3bdc   Виталий   test commit
131
132
133
134
135
                          'master' => null

                      ],

                      'crop' => [

                          'width' => 150,

                          'height' => 150,

4253cbec   root   first commit
136
137
                          'master' => null

                      ],

4253cbec   root   first commit
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
                  ],

                  'mainmenu' => [

                      'resize' => [

                          'width' => 160,

                          'height' => 170,

                          'master' => null

                      ],

                  ],

                  'list' => [

                      'resize' => [

                          'width' => 134,

                          'height' => 200,

                          'master' => null

                      ],

                  ],

66285eca   Administrator   big commti
153
154
                  'banner_list' => [

                      'resize' => [

2010984d   Administrator   big commti
155
156
                          'width' => 105,

                          'height' => 25,

66285eca   Administrator   big commti
157
158
159
                          'master' => null

                      ],

                  ],

4253cbec   root   first commit
160
161
162
163
164
165
166
167
168
169
170
171
                  'large' => [

                      'resize' => [

                          'width' => 600,

                          'height' => 600,

                          'master' => null

                      ],

                  ],

                  'admin_thumb' => [

                      'resize' => [

                          'width' => 256,

                      ],

                  ],

c4015198   Administrator   big commti
172
173
174
175
176
177
                  'option_menu' => [

                      'resize' => [

                          'width' => 100,

                          'height' => 110,

                      ],

                  ],

4a13b493   Administrator   big commti
178
179
180
181
182
183
                  'product_show'=>[

                      'resize' => [

                          'width' => 342,

                          'height' => 350,

                      ],

                  ]

4253cbec   root   first commit
184
185
              ]

          ],

fe7b6960   Yarik   Basket
186
187
188
          'basket' => [

              'class' => 'common\models\Basket',

          ],

4253cbec   root   first commit
189
190
191
192
193
194
195
196
197
      ],

  

      'modules' => [

          'file' => [

              'class' => 'common\modules\file\Module',

          ],

          'artbox-comment' => [

              'class' => 'common\modules\comment\Module',

          ],

4253cbec   root   first commit
198
199
      ],

  ];