Tuesday, December 22, 2009

CakePHP Debug

Set 
Configure::write('debug',2); /* file://app/config/core.php
This will display basic debugging information like SQL dumps etc. If you can see the error message, fix it.


Also you may use this statement in your view file:
pr($this->validationErrors);
It shows all validation errors. This helps a lot in debugging cake.


A very helpful article I found:
CakePHP Tips

No comments: