Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii2 kartik GridView " The 'gridview' module MUST be setup in your Yii configuration "

Tags:

php

yii2

I have the next trouble,

The gridview module MUST be setup in your Yii configuration file and must be an instance of kartik\grid\Module.

I don't know how to configure my config file. In my config file, I have this:

'modules' => [

        'gridview' => ['class' => 'kartik\grid\Module']
    ],

but this not found

like image 410
ivan martinez Avatar asked Oct 23 '25 17:10

ivan martinez


1 Answers

The solution is agregated the line modules over the same herarchy like this:

'components' => [
      ],
'modules' => [
     'gridview' => ['class' => 'kartik\grid\Module']
] 
like image 164
ivan martinez Avatar answered Oct 26 '25 08:10

ivan martinez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!