Thursday, June 25, 2009

Re: How to show queries in the console?

After digging around I found this post:

http://myeasyscripts.com/loudbaking/sql-query-logs-in-cakephps-shells/

The solution is a couple of years old but still works. It doesn't
seem like you should have to hack a core file to do this.

Levi

On Jun 25, 10:50 am, lsenft <lse...@gmail.com> wrote:
> How do you show the sql for queries being executed in the console? I
> have debug set and I can see the SQL for the queries that cake builds
> when I look at a page in the browser but not when I run queries in the
> console.
>
> Thank you.
>
> Levi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: