Answer the question
In order to leave comments, you need to log in
How to correctly implement data transfer in gridview yii2?
Good afternoon !
Help solve the problem ..
Essence: there is a grid of goods that are compared by the user. Each cook receives an "attributes" model, in which I write the product name and attribute data [ 'высота' => '100', 'цвет' => 'зеленый' ]
.
Those. I get data like this:
[
[0] => [
'name' => 'Test name',
'price' => 300,
...
'attributes' => [
'color' => 'green',
'width' => 100,
]
],
[1] => [
'name' => 'primer prod',
'price' => 100,
...
'attributes' => [
'color' => 'yellow'
]
]
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question