-- Dan Dorman <[EMAIL PROTECTED]> wrote
(on Wednesday, 06 February 2008, 02:09 PM -0800):
> Dan Dorman wrote:
> > The action functions aren't getting called twice, the output of the last
> > function is simply being prepended to the desired output for some reason.
> 
> After digging around the Zend Framework code, I discovered the culprit: the
> Zend_View action helper clones the response object and then clears its body
> before appending text. However, when the nested call returns to the outer
> call, it ends up appending the text to the same response object.
> 
> Adding another call to resetObjects after the response is returned fixes the
> problem, but is there a way around this without resorting to altering the ZF
> code directly? I tried doing something similar in the postDispatch method of
> my controller objects, but it was too late by that point.
> 
> Any other ideas or guidance would be great.

Actually, the call to resetObjects wasn't the issue. There was something
fundamentally broken about the Standalone container's implementation
that basically allowed multiple copies of the same placeholder to exist.
I've fixed the implementation in trunk; please test and let me know if
it solves your issues.

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to