http://bakery.cakephp.org/articles/view/174

"The other nice addition in 1.1.11.4064 is updated functionality of
the Configure class. All core configuration is now handle by this
class, so inside your methods you can access Configure::read('debug');
for the current setting. Also, Configure::write('debug', '0'); to
change the debug level for a specific method. Also, we added
Configure::version(); to get the latest version number."

On 2/14/07, Mandy <[EMAIL PROTECTED]> wrote:
>
> 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!
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

--~--~---------~--~----~------------~-------~--~----~
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