Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nevercodealone/43257c4dba0dc0bc8ca9c464bd95adfc to your computer and use it in GitHub Desktop.
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
$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