标签:sql语句 style conf ast pre app class cti col
1.在app\config\core.php中设置Configure::write(‘debug‘, 2);
2.页面上追加如下代码: $dbo = ConnectionManager::getDataSource(‘default‘); $logs = $dbo->getLog(); $lastLog = end($logs[‘log‘]); echo $lastLog[‘query‘];die;
标签:sql语句 style conf ast pre app class cti col
原文地址:https://www.cnblogs.com/xiaobiaomei/p/9344652.html