just tried this..still getting the same empty result

On May 17, 7:58 pm, brian <[email protected]> wrote:
> That's because you have it in beforeRender(). By that time, all DB
> access has come and gone and all that's left is to render the page.
> You could try it in beforeFilter(), which fires before the action is
> entered.
>
> On Sun, May 17, 2009 at 7:41 PM, JamesF <[email protected]> wrote:
>
> > hello all, i love cakephp's built in table that shows the sql queries
> > that are running. my site is now live but i need a way to check under
> > the hood without disrupting my users.
>
> > here is what i put in the beforeRender function of my app_controller:
>
> >                function beforeRender(){
>
> >                          if ($this->Auth->user('role') == 'admin'){
>
> >                                        Configure::write('debug', 2);
> >                          } else {
> >                                 //
> >                          }
>
> > i have Configure::write('debug', 0) set in my core.php
>
> > now this pulls up that sql table thing at the bottom of the screen but
> > it is EMPTY. it says (default) 0 query took ms.
>
> > anyone have a solution?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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