Home >Backend Development >PHP Tutorial >How to print sql statement in cakephp_PHP tutorial
This article mainly introduces the method of printing sql statements in cakephp, which can realize the function of printing all previous SQL statements and has certain reference value. , friends in need can refer to it
The example in this article describes how cakephp prints sql statements. Share it with everyone for your reference. The specific implementation method is as follows:
Copy the following statement into your code, you can print out all the sql statements before this:
?
3 4 5
|
$sources = ConnectionManager::sourceList();
if (!isset($logs)): |