$db =ConnectionManager::getDataSource('default');
debug($db->showLog());On Aug 13, 7:43 am, Abhishek <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
