I am attempting to make use of the new Configure class to dynamically 
set the debug level to 0 in some of my (AJAX) methods.

I assume that all I need to do is:

   function getSomeData() {
     Configure::write('debug', '0');
     code to find and set data ...
   }


Is this correct?  I have tried this but am still getting debug output in 
the returned content, but no errors.

If I do:

   echo Configure::read('debug');

After setting debug to 0 then it returns 0 as expected.

Can anyone suggest what I am doing wrong?

Regards,
Langdon


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to