Answer the question
In order to leave comments, you need to log in
How to use a piece of code in multiple Yii2 templates?
Good day! I have 4 templates (layouts) and there is a piece of code that is in all 4 templates, tell me how can I include this piece in all 4 templates? I tried something with beginContent but I can't figure out how it works. Give an example if possible. Thanks in advance!
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