SQL debug message not appearing

I'm using Cake 1.3-RC1, in my config/core.php, I'm still using debug level 2 :


Configure::write('debug', 2);

But as soon as I created a new layout, I don't see the SQL debug message again, do I need to include something in my layout for it to be appearing?

Asked by furuno, on 12/4/10

2 Answers

You must write this:

<?php echo $cakeDebug; ?>

Answered by Shizon 12/4/10

For 1.3 you need


echo $this->element('sql_dump')

in your layout

Answered by dirnon 13/4/10

thanks!

furuno - on 14/4/10

<< comments | comments >>
<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Tagged with

Rating

0

Viewed

367 times

Last Activity

on 14/4/10