php - yii2 double gridview in a form
I have 2 gridview in a form and from them I have to extract selectedrows, which I did with'class' => 'kartik\grid\CheckboxColumn'
.
In a controller receive the selected values in aselection[]
variable.
Here comes the problem. Theselection[]
variable brings the selection of the 2 gridViews. Ex:
array (size=2) 0 => string '10' (length=2) 1 => string '44' (length=2)
That result is the selection of one row of each GridView.
How can I separate theselection[]
results.
Answer
Solution:
you can make your own column