Answer the question
In order to leave comments, you need to log in
How to load category list in layout in Yii2?
Actually the whole question in the topic.
We make a select and load the data, we make a menu from them, that's all
Answer the question
In order to leave comments, you need to log in
So 1 So 2
In the controller or in the model, configure the array as in the video, in Layout give the finished array and that's it. If something specific, then inside the widget the array can be added to the same variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question