You might also want to try the css route (no code changes)
Just return
#cakeSqlLog { display: none }
Hope this helps!
Thanks,
Mandy.
On Feb 14, 4:06 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> 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 [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
-~----------~----~----~----~------~----~------~--~---