I'm making an endpoint that returns JSON.
{"a":1,"b":1} Cake puts an HTML tag in my output.
{"a":1,"b":1} <!-- 0.0964s --> Why would it do that to my JSON?
I can put
Configure::write('debug', 0); but that suppresses any warnings/errors during development. If something is going wrong, I won't know.
How do I get warnings/errors to print out, but only warnings/errors on requests that have warnings/errors, not a HTML comment for successful responses.
die()