I feel my problem is relatively simple. I’m new to the Zend framework and I’d like to be able to call a controller to do some work for a header or a footer. I’ve already created a HeaderController and a applications/views/scripts/headers/index.phtml – all I’m trying to do is get that data, and put it in my layout by default.
Everything works if I navigate to /header, by the by.
Edit:
Made some progress – if I add:
$this->render("header/index.phtml");
it renders all the static data, but doesn’t seem to be running the HeaderController.
Try this bit of code out, be sure to disable the layout in your header controller, as the purpose is only to render a limited amount of content.
The documentation can be seen here.
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.action