V
V
Vladimir2017-01-02 21:44:29
Yii
Vladimir, 2017-01-02 21:44:29

What is the best way to include code blocks in Yii2?

Good day! I am new to Yii2 and have this little question. The page has many different parts of the code that are repeated in several templates. For example, such a thing as a menu. What do you recommend to use? Display it in widgets (widget) or blocks (beginBlock).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2017-01-02
@MasterGerold

I usually put it in widgets. Although it is possible and so and so ... :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question