$db =ConnectionManager::getDataSource('default');
debug($db->showLog());


On Aug 13, 7:43 am, Abhishek <abhishek...@gmail.com> wrote:
> Hi,
> How can i get the SQL query generated by the framework. It does get
> saved in the log, but in that case along with that lot of other
> information is saved.
>
> I need to store just the SQL query generated as it is in a database so
> that i can retrieve them later
> and run them.
>
> Any idea how do i go about it
>
> Regards
> Abhishek Jainhttp://www.fidelus.in
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to