Forked from mikedamoiseau/cakephp-last-executed-query
Last active
June 5, 2018 18:44
-
-
Save matheuseduardo/035105aa9c774b33f38fa52eaaed6b02 to your computer and use it in GitHub Desktop.
CakePHP - Display last executed SQL query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// only for CakePHP 2.x | |
$lastquery = end($this->getDatasource()->getLog()['log'])['query']; | |
debug($lastquery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment