In this tip i will show you how to enable/disable error reporting / warning , or debugging in cakephp.

Step 1. Go to cakephp\app\Config folder and open core.php .

Step 2. Now find Configure::write(‘debug’, 0); Now you can change the value of debug to 1 or 2.

* Production Mode:
 * 	0: No error messages, errors, or warnings shown. Flash messages redirect.
 *
 * Development Mode:
 * 1: Errors and warnings shown, model caches refreshed, flash messages halted.
 * 2: As in 1, but also with full debug messages and SQL output.

that’s it! 🙂

 

Posted in: PHP