G
G
Greg Popov2016-08-01 15:39:11
Yii
Greg Popov, 2016-08-01 15:39:11

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

1 answer(s)
M
Maxim Fedorov, 2016-08-01
@Gregpopov

Do you mean how to pass data between views? if yes then read this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question