Answer the question
In order to leave comments, you need to log in
How to correctly pass a constant value to layout Yii2?
Hello. There are many examples of how to do this from the controller, but there are no examples that show how to properly send data to the layout (now in the project this is done using a simple one ModelTable::getSomeData()
directly in the layout)
What do you advise?
Answer the question
In order to leave comments, you need to log in
Do you mean how to pass data between views? if yes then read this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question