I want to generate a dynamic site using Zend_Layout.
My layout (/application/layouts/scripts/layout.phtml) contains the following lines:
...
I got to this page when looking for an answer to my own problem, which was that my layout got called multiple times. This happened because of multiple reasons:
1) I made a bad ajax call, had /help instead of /module/help
2) I called an action, exampleAction(), I had to put a
$this->_helper->layout->disableLayout();
To prevent the layout from being rendered again.
3) I did a redirect, try using a forward or route.