From 52b4dcda1dc66a599ea20d9aab9591cf482cacfa Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 2 Apr 2024 16:48:50 +0300 Subject: [PATCH] add kartik grid support --- erp24/composer.json | 3 ++- erp24/config/web.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/erp24/composer.json b/erp24/composer.json index a19c45d..f6facf1 100644 --- a/erp24/composer.json +++ b/erp24/composer.json @@ -25,7 +25,8 @@ "wbraganca/yii2-dynamicform": "dev-master", "unclead/yii2-multiple-input": "~2.0", "kartik-v/yii2-widget-fileinput": "dev-master", - "yiisoft/yii2-imagine": "^2.3" + "yiisoft/yii2-imagine": "^2.3", + "kartik-v/yii2-builder": "dev-master" }, "require-dev": { "yiisoft/yii2-debug": "~2.1.0", diff --git a/erp24/config/web.php b/erp24/config/web.php index a75924c..fcbf25e 100644 --- a/erp24/config/web.php +++ b/erp24/config/web.php @@ -12,6 +12,9 @@ $config = [ '@npm' => '@vendor/npm-asset', ], 'modules' => [ + 'gridview' => [ + 'class' => '\kartik\grid\Module' + ], 'crud' => [ 'class' => \yii\base\Module::class, 'viewPath' => '@yii_app/views/crud', -- 2.39.5