On 10/03/2010, at 11:13 AM, Kareem Sabri wrote:

> Hello,
> 
> In production mode, occasionally I want to debug something in my
> Content Management System.
> 
> So I add Configure::write('debug', 2); in my controller code.
> 
> I get no SQL info. The table that holds it is appended to the layout,
> but it's empty except for 0 query took 0 ms (despite that many queries
> are taking place). It's not just not displaying, when I view the
> source code the table is empty.
> 
> Any suggestions?
> 
> Thanks!
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Are you using CakePHP 1.3?
If so, you'll need to include the sql_dump element

<?php echo $this->element('sql_dump'); ?>

Cheers,

Graham Weldon
e. gra...@grahamweldon.com
p. +61 407 017 293
w. http://grahamweldon.com

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to