Last active
March 21, 2017 10:05
-
-
Save nevercodealone/43257c4dba0dc0bc8ca9c464bd95adfc to your computer and use it in GitHub Desktop.
Get the last sql query from TYPO3. You can use it easy as live template and set a break point in xdebug to get the query in the var $lastQuery
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
$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1; | |
$lastQuery = $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment