From 6daa3112b6e07c5f1a339ecd4d31cf5c48fe459f Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Wed, 1 Dec 2021 10:41:04 +1000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B8=D0=BD=D1=82=D0=B0=D0=BA=D1=81?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B5=20=D0=B8=D1=81=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skillparts/system/config/console.php.example | 13 ++++++++++++- mirzaev/skillparts/system/views/profile/panel.php | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/mirzaev/skillparts/system/config/console.php.example b/mirzaev/skillparts/system/config/console.php.example index b17a3f6..f5be4c3 100644 --- a/mirzaev/skillparts/system/config/console.php.example +++ b/mirzaev/skillparts/system/config/console.php.example @@ -2,7 +2,7 @@ declare(strict_types=1); -return [ +$config = [ 'id' => 'skillparts-console', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], @@ -35,3 +35,14 @@ return [ ], ] ]; + + +if (YII_ENV_DEV) { + // configuration adjustments for 'dev' environment + $config['bootstrap'][] = 'gii'; + $config['modules']['gii'] = [ + 'class' => 'yii\gii\Module', + ]; +} + +return $config; diff --git a/mirzaev/skillparts/system/views/profile/panel.php b/mirzaev/skillparts/system/views/profile/panel.php index 9ed9e75..6a99efa 100644 --- a/mirzaev/skillparts/system/views/profile/panel.php +++ b/mirzaev/skillparts/system/views/profile/panel.php @@ -142,7 +142,7 @@ $timezone = $timezone[1][0]; - +