Sending variables to the layout in Zend Framework
The layout is a view, so the method for assigning variables is the same. In your example, if you were to echo $this->whatever in your layout, you should see the same output. One common problem is how to assign variables that you use on every page to your layout, as you wouldn’t want to have … Read more