Tuesday, July 23, 2013

RE: How to grab the entire HTML output of a request

Try this:

 

$html = $this->render('view')->body();

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Vanja Dizdarevic
Sent: Tuesday, July 23, 2013 12:20 PM
To: cake-php@googlegroups.com
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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: