On May 3, 2011, at 07:23, heohni wrote:

> Hi, I haveing a strange problem that cake is writing 2 statements into
> the db I can't really find...
> I am doing some ajax stuff, connected with some functions which
> redirect to another function, and somewhere inbetween, there are
> statements which doing wrong stuff....
> 
> Is there a way to write ALL statements into a txt file for debug
> reasons?

You can use the debugkit plugin to view your sql queries and other information:

https://github.com/cakephp/debug_kit#readme


If you really want it in a file, you might be able to add code to cakephp 
somewhere to do that, but it's really the job of the database engine to do 
that; for example you can easily make mysql log all its queries by adding the 
appropriate directive to your mysql server's my.cnf.


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to