cakephp prints the code of sql statement
Copy the following statement into your code, you can print out all the sql statements before this:
Copy to ClipboardQuoted content:
[www.bkjia.com]
$sources = ConnectionManager::sourceList();
if (!isset($logs)):
$logs = array();
foreach ($sources as $source):
$db =& ConnectionManager::getDataSource($source);
if (!$db->isInterfaceSupported('getLog')):
continue;
endif;
$logs[$source] = $db->getLog();
endforeach;
endif;
http://www.bkjia.com/PHPjc/363916.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/363916.htmlTechArticlecakephp prints the code of the sql statement. Copy the following statement into your code to print out all the previous statements. SQL statement: Copy to Clipboard Quoted content: [www.veryhuo.com] $...