How to enable/disable debug messages for an action
This is very simple to enable/disable debug message for cakephp action
Edit app\config\core.php.
Configure::write(‘debug’, 2);
replace to
Configure::write(‘debug’, 0);
Hope your debug work properly.