In my project I have a number of dynamic elements that are consistently on every page. I have put these in my layout.phtml
My question is: How can I send variables i
The standard view variables are available if you use the layout within the MVC. In bootstrap file, include this:
Zend_Layout::startMvc();
You must then tell each controller (or even each action, if you wanted granular control over several different layouts) which layout to use. I put mine in the init() of each controller. Here's an example, if your layout file is named layout.phtml:
$this->_helper->layout->setLayout('layout');