Yes, I rewrited the showLog function in 'dbo_source.php' and save the DB
query infor into a file.It worked,ha,thanks.
2007/6/29, Grant Cox <[EMAIL PROTECTED]>:
>
>
> Finally you can have
>
> ob_start();
> $db =& ConnectionManager::getDataSource('default');
> $db->showLog();
> $log_contents = ob_get_clean();
> $this->log( $log_contents );
>
> However, the showLog function is hardcoded to embed HTML styling if
> you are not running command line. It might be worth writing your own
> function somewhere to grab the $db->_queriesLog directly and output it
> how you like (then you won't have to worry about using the output
> buffer too).
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---