2009年7月15日星期三

Re: [fw-mvc] howto: capture action output, stream it as pdf

Have you tried just assigning the result of the $view's render() call...
[editing your code]

Render returns the content of the template, but the layout is always shown,
even if I don't ouput anything from the controller.
If I echo out the contents of the template, then these contents are
correctly inserted into the layout.
But I want to capture the whole layout, including its content.

It seems like templates are an output buffer layer (nested buffering), which
isn't affected by disableOutputBuffering.


--
View this message in context: http://www.nabble.com/howto%3A-capture-action-output%2C-stream-it-as-pdf-tp24496539p24497006.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: