Take a look at Zend_Layout_Controller_Plugin_Layout to see how and when it renders the layout.
-Hector
On Mon, Nov 24, 2008 at 5:06 PM, Dan Wilson <dan@acucore.com> wrote:
Hey all,
I'm trying to capture the output of an action (for passing to a PDF
rendering engine), but can't seem to get it all combined together.
I've tried the following code:
$content = $this->_helper->layout->render();
But that just gives me the rendered layout but no body.
Then I also tried this:
$this->render();
$content = $this->_response->getBody();
But that only gives me the rendered script.
How do I get it all put together?
Thanks,
-=Dan
没有评论:
发表评论