Try using die(); or exit();  after $this->render();

Sam D

On 7/14/06, StinkyTofu <[EMAIL PROTECTED] > wrote:

Is there any way to turn off debug output for one particular page?

I am using a CakePHP script to return values back to a Flash program,
however Flash doesn't like extra whitespace in its input, therefore the
SQL debug output is messing up Flash's ability to read the program's
output.

Someone suggested putting define('DEBUG','0'); in the controller method
where you want to set a different debug level, but this doesn't work,
because define('DEBUG','2'); is already defined in core.php .

Any ideas how to do this?  It's frustrating to have to go back and
change the debug setting in core.php everytime I want to test the Flash
application.

Thanks.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to