2008年11月24日星期一

[fw-mvc] Capture Full Output from Layout and Script

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

没有评论: