G
G
Greg Popov2016-05-07 15:14:30
Yii
Greg Popov, 2016-05-07 15:14:30

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

1 answer(s)
A
Anton Natarov, 2016-05-07
@Gregpopov

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 question

Ask a Question

731 491 924 answers to any question