You may wish to review Matthew's first commit in the incubator for the
Zend_View_Helper_Action component.
It's the official Zend implementation of Padraic's Zend_View_Enhanced
- the Action Helper solves exactly the problem you've described here.
Check it out, give it a try and see if you can add your feedback to
the proposal (would give you the link but the Wiki's down :( )
Cheers
Hey folks,
in my current project i built up a widget system based on ZF which
allowes
to run a front controller twice or more during runtime and getting the
response of a so called subrequest in a view with:
<div id="calendar">
<?php echo $this->widget("calendar", "utils", "global-module"); ?>
</div>
This post is for those who are interested in chaining the front
controller
object and getting allways the right instance when calling
Zend_Controller_Front::getInstance().
The Problem with current Zend_Controller_Front is, that it
implements the
singelton pattern and it allways give the current instance back.
that means,
its not possible to have more than one instance at the same time. of
course,
this behavior is neccessary for the helperbrooker, but this is another
topic.
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com