works like a charm, thanks - S On 14/02/07, Ryan <[EMAIL PROTECTED]> wrote: > > > If you put these lines in your beforeFilter then it should work: > > $db =& ConnectionManager::getDataSource('default'); > $db->fullDebug = false; > > Regards, > Ryan Rose > http://www.digiwize.com > > On Feb 14, 5:41 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > > I want to disable debug but only when I am returning JSON data > > > > eg prevent the sql table being appended to end of that document, with > > debugging still active at 1, 2 or 3 > > > > On 14/02/07, mindcharger <[EMAIL PROTECTED]> wrote: > > > > > > > > > Not sure if I understood what you want to say, but to disable debug > > > just go to cor.php in (app/config) and set: > > > > > define('DEBUG', 0); > > > > > Cheers! > > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---