Blame view

common/config/main.php 1.85 KB
1755c393   Yarik   Basic template in...
1
  <?php
8596ef4b   Alexey Boroda   -Seo component ready
2
3
      use artbox\core\components\SeoComponent;
      
6966d71b   Yarik   Makeup
4
5
      return [
          'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
6e516b40   Yarik   Layout complete
6
7
8
9
10
11
12
13
14
15
16
17
18
          'modules'    => [
              'imagemanager' => [
                  'class'                => 'noam148\imagemanager\Module',
                  'canUploadImage'       => true,
                  'canRemoveImage'       => function () {
                      return true;
                  },
                  'setBlameableBehavior' => false,
                  'cssFiles'             => [
                      'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
                  ],
              ],
          ],
6966d71b   Yarik   Makeup
19
          'components' => [
6e516b40   Yarik   Layout complete
20
              'cache'        => [
6966d71b   Yarik   Makeup
21
22
                  'class' => 'yii\caching\FileCache',
              ],
6e516b40   Yarik   Layout complete
23
              'i18n'         => [
6966d71b   Yarik   Makeup
24
25
26
                  'translations' => [
                      'core' => [
                          'class'    => 'yii\i18n\PhpMessageSource',
9576f402   Yarik   Namespaces and al...
27
                          'basePath' => '@artbox/core/messages',
6966d71b   Yarik   Makeup
28
                      ],
b313037a   Alexey Boroda   -Flesh widget ready
29
30
                  ],
              ],
6e516b40   Yarik   Layout complete
31
              'filedb'       => [
6966d71b   Yarik   Makeup
32
33
34
                  'class' => 'yii2tech\filedb\Connection',
                  'path'  => '@common/config',
              ],
6e516b40   Yarik   Layout complete
35
              'sitemapdb'    => [
a42025b8   Yarik   Sitemap and slugb...
36
37
38
39
                  'class'          => 'yii2tech\filedb\Connection',
                  'path'           => '@common/config',
                  'primaryKeyName' => 'id',
              ],
6e516b40   Yarik   Layout complete
40
              'seo'          => [
8596ef4b   Alexey Boroda   -Seo component ready
41
42
                  'class' => SeoComponent::className(),
              ],
6e516b40   Yarik   Layout complete
43
44
              'imagemanager' => [
                  'class'       => 'noam148\imagemanager\components\ImageManagerGetPath',
476ebf6c   Yarik   Preready
45
                  'mediaPath'   => dirname(dirname(__DIR__)) . '/common/images',
6e516b40   Yarik   Layout complete
46
47
48
49
                  'cachePath'   => 'assets/images',
                  'useFilename' => true,
                  'absoluteUrl' => false,
              ],
b313037a   Alexey Boroda   -Flesh widget ready
50
          ],
6966d71b   Yarik   Makeup
51
      ];