Commit 4276e0de8c5f26755c4707c1e73e3d9b59b30f79
1 parent
9eaaca9d
image size
Showing
2 changed files
with
27 additions
and
26 deletions
Show diff stats
backend/config/main.php
... | ... | @@ -10,6 +10,32 @@ $params = array_merge( |
10 | 10 | return [ |
11 | 11 | 'id' => 'app-backend', |
12 | 12 | 'basePath' => dirname(__DIR__), |
13 | + 'controllerMap' => [ | |
14 | + 'elfinder' => [ | |
15 | + 'class' => 'mihaildev\elfinder\Controller', | |
16 | + 'access' => ['@'], //глобальный доступ к фаил менеджеру @ - для авторизорованных , ? - для гостей , чтоб открыть всем ['@', '?'] | |
17 | + 'disabledCommands' => ['netmount'], //отключение ненужных команд https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#commands | |
18 | + 'roots' => [ | |
19 | + [ | |
20 | + 'class' => 'mihaildev\elfinder\UserPath', | |
21 | + 'path' => '../../storage/user_{id}', | |
22 | + 'name' => 'My Documents' | |
23 | + ], | |
24 | + ], | |
25 | + 'watermark' => [ | |
26 | + 'source' => __DIR__.'/logo.png', // Path to Water mark image | |
27 | + 'marginRight' => 5, // Margin right pixel | |
28 | + 'marginBottom' => 5, // Margin bottom pixel | |
29 | + 'quality' => 95, // JPEG image save quality | |
30 | + 'transparency' => 70, // Water mark image transparency ( other than PNG ) | |
31 | + 'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field ) | |
32 | + 'targetMinPixel' => 200 // Target image minimum pixel size | |
33 | + ] | |
34 | + ], | |
35 | +// 'artbox-comment' => [ | |
36 | +// 'class' => \common\modules\comment\Controller::className(), | |
37 | +// ], | |
38 | + ], | |
13 | 39 | 'layout' => 'admin', |
14 | 40 | 'controllerNamespace' => 'backend\controllers', |
15 | 41 | 'bootstrap' => ['log'], | ... | ... |
common/config/main.php
... | ... | @@ -2,32 +2,7 @@ |
2 | 2 | return [ |
3 | 3 | 'language' => 'ru', |
4 | 4 | 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', |
5 | - 'controllerMap' => [ | |
6 | - 'elfinder' => [ | |
7 | - 'class' => 'mihaildev\elfinder\Controller', | |
8 | - 'access' => ['@'], //глобальный доступ к фаил менеджеру @ - для авторизорованных , ? - для гостей , чтоб открыть всем ['@', '?'] | |
9 | - 'disabledCommands' => ['netmount'], //отключение ненужных команд https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#commands | |
10 | - 'roots' => [ | |
11 | - [ | |
12 | - 'class' => 'mihaildev\elfinder\UserPath', | |
13 | - 'path' => '../../storage/user_{id}', | |
14 | - 'name' => 'My Documents' | |
15 | - ], | |
16 | - ], | |
17 | - 'watermark' => [ | |
18 | - 'source' => __DIR__.'/logo.png', // Path to Water mark image | |
19 | - 'marginRight' => 5, // Margin right pixel | |
20 | - 'marginBottom' => 5, // Margin bottom pixel | |
21 | - 'quality' => 95, // JPEG image save quality | |
22 | - 'transparency' => 70, // Water mark image transparency ( other than PNG ) | |
23 | - 'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field ) | |
24 | - 'targetMinPixel' => 200 // Target image minimum pixel size | |
25 | - ] | |
26 | - ], | |
27 | -// 'artbox-comment' => [ | |
28 | -// 'class' => \common\modules\comment\Controller::className(), | |
29 | -// ], | |
30 | - ], | |
5 | + | |
31 | 6 | 'components' => [ |
32 | 7 | 'assetManager' => [ |
33 | 8 | 'bundles' => [ | ... | ... |