On Tue, Mar 3, 2009 at 2:09 PM, Alex <[email protected]> wrote:
>
> I'm using the javascript->object() method to return JSON data for XHR
> requests. All works great when the cake debug level is set to 0, but
> when higher will append an html style comment to my JSON data like so:
> "<!-- 0.5613s -->", indicating the response time of the request. This
> prohibits the JSON data from being evaluated. Is there anyway to keep
> a non-zero debug level and keep cake from appending this value?
Do you mean, so that you can see debugging info aside from the XHR request?
Configure::write('debug', 0);
... just before you send the JSON data. This way, you can see
debugging info elsewhere. There's no practical way to output debugging
info *with* your JSON data, as you've already seen.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---