As for zf3 to pass a variable to Layout?

0 like 0 dislike
238 views
Hi all. Pretty simple question arose. How can I set variable in layout?

In the page controller you can do it through the ViewModel(['var' => 'value']);

How to do the same thing, but pass in a layout??
by | 238 views

1 Answer

0 like 0 dislike
in the script/the script output, $this->layout()->var='value'
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 4, 2019 by glebvvs
0 like 0 dislike
6 answers
asked Mar 24, 2019 by Aliance
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked Mar 24, 2019 by Meliborn
110,608 questions
257,187 answers
0 comments
40,796 users