1
votes

I'm just starting out in Zend Framework 3 after using 1.12 for years. When I pass a variable to the view model it shows up just fine in the view script. However, I'm having trouble accessing those variables inside my layout scripts.

The following code doesn't work

<?= $this->vars('title');  ?>

Any ideas?

1

1 Answers

3
votes

Finally found out how to do this in a controller:

$this->layout()->setVariable('title', 'SUPPORT CENTER');