Try this:
$html = $this->render('view')->body();
From: [email protected] [mailto:[email protected]] On Behalf
Of Vanja Dizdarevic
Sent: Tuesday, July 23, 2013 12:20 PM
To: [email protected]
Subject: How to grab the entire HTML output of a request
I have a third-party server requesting a url from my app and expecting a
strictly defined output format.
I wish to debug the entire output (view + layout) of that request and write
it to a file/database/whatever.
Is there a callback which allows me quick access to the entire HTML which is
output to the "browser", or client to be exact.
Thanks!
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.