Monday, August 31, 2009

Remove sql statement at the bottom of the page (CakePHP)

By default, CakePHP display a list of sql statements at the bottom of the page.
This is the result of CakePHP debug level.

To remove the sql statements, we need to change the debug level to 0.

Open the app/config/core.php, search for this line
Configure::write('debug', 2);

Then change it to 0
Configure::write('debug', 0);

Done.

No comments: