From 4276e0de8c5f26755c4707c1e73e3d9b59b30f79 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 30 May 2016 19:05:32 +0300 Subject: [PATCH] image size --- backend/config/main.php | 26 ++++++++++++++++++++++++++ common/config/main.php | 27 +-------------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/backend/config/main.php b/backend/config/main.php index fbd7ffe..4d84835 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -10,6 +10,32 @@ $params = array_merge( return [ 'id' => 'app-backend', 'basePath' => dirname(__DIR__), + 'controllerMap' => [ + 'elfinder' => [ + 'class' => 'mihaildev\elfinder\Controller', + 'access' => ['@'], //глобальный доступ к фаил менеджеру @ - для авторизорованных , ? - для гостей , чтоб открыть всем ['@', '?'] + 'disabledCommands' => ['netmount'], //отключение ненужных команд https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#commands + 'roots' => [ + [ + 'class' => 'mihaildev\elfinder\UserPath', + 'path' => '../../storage/user_{id}', + 'name' => 'My Documents' + ], + ], + 'watermark' => [ + 'source' => __DIR__.'/logo.png', // Path to Water mark image + 'marginRight' => 5, // Margin right pixel + 'marginBottom' => 5, // Margin bottom pixel + 'quality' => 95, // JPEG image save quality + 'transparency' => 70, // Water mark image transparency ( other than PNG ) + 'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field ) + 'targetMinPixel' => 200 // Target image minimum pixel size + ] + ], +// 'artbox-comment' => [ +// 'class' => \common\modules\comment\Controller::className(), +// ], + ], 'layout' => 'admin', 'controllerNamespace' => 'backend\controllers', 'bootstrap' => ['log'], diff --git a/common/config/main.php b/common/config/main.php index d962233..ca5185f 100755 --- a/common/config/main.php +++ b/common/config/main.php @@ -2,32 +2,7 @@ return [ 'language' => 'ru', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', - 'controllerMap' => [ - 'elfinder' => [ - 'class' => 'mihaildev\elfinder\Controller', - 'access' => ['@'], //глобальный доступ к фаил менеджеру @ - для авторизорованных , ? - для гостей , чтоб открыть всем ['@', '?'] - 'disabledCommands' => ['netmount'], //отключение ненужных команд https://github.com/Studio-42/elFinder/wiki/Client-configuration-options#commands - 'roots' => [ - [ - 'class' => 'mihaildev\elfinder\UserPath', - 'path' => '../../storage/user_{id}', - 'name' => 'My Documents' - ], - ], - 'watermark' => [ - 'source' => __DIR__.'/logo.png', // Path to Water mark image - 'marginRight' => 5, // Margin right pixel - 'marginBottom' => 5, // Margin bottom pixel - 'quality' => 95, // JPEG image save quality - 'transparency' => 70, // Water mark image transparency ( other than PNG ) - 'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field ) - 'targetMinPixel' => 200 // Target image minimum pixel size - ] - ], -// 'artbox-comment' => [ -// 'class' => \common\modules\comment\Controller::className(), -// ], - ], + 'components' => [ 'assetManager' => [ 'bundles' => [ -- libgit2 0.21.4