Ever wondered where the **** that query came from in CakePHP?

I’ve always been frustrated looking at the masses of queries generated by my CakePHP applications and really wondering where they originated from. It would be extremely useful when performing debugging. Sure enough I started looking into cakephp datasources and found that I could implement a solution without even touching the core!

Something like…

sqllog

I’ve released the datasource to make this happen as part of my Util plugin for CakePHP. To get started please see the Wiki page.

Util is just a plugin full of unrelated libraries for CakePHP, most of the code there is from other people.

Currently only for MySQL but you only have to change one line for different databases.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">