Commit 4276e0de8c5f26755c4707c1e73e3d9b59b30f79

Authored by Administrator
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,6 +10,32 @@ $params = array_merge(
10 return [ 10 return [
11 'id' => 'app-backend', 11 'id' => 'app-backend',
12 'basePath' => dirname(__DIR__), 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 'layout' => 'admin', 39 'layout' => 'admin',
14 'controllerNamespace' => 'backend\controllers', 40 'controllerNamespace' => 'backend\controllers',
15 'bootstrap' => ['log'], 41 'bootstrap' => ['log'],
common/config/main.php
@@ -2,32 +2,7 @@ @@ -2,32 +2,7 @@
2 return [ 2 return [
3 'language' => 'ru', 3 'language' => 'ru',
4 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 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 'components' => [ 6 'components' => [
32 'assetManager' => [ 7 'assetManager' => [
33 'bundles' => [ 8 'bundles' => [