Well, I did, but then the $output becomes the layout only, without its contents. What I need to capture is the whole layout, including its content. Pfew, this use case shouldn't be so difficult, but I am quitte puzzled?
calling
$this->_helper->ViewRenderer->render();
should influence
//render the layout manually and capture the output
$output = $this->view->render(path/to/layout.phtml);
but it doesn't. Unfortunately, zend_layout is a bit of black magic.
View this message in context: Re: howto: capture action output, stream it as pdf
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论