Skip to content

Instantly share code, notes, and snippets.

@marceloxp
Created October 26, 2015 12:06
Show Gist options
  • Save marceloxp/eed3653d4fc5a05e8afd to your computer and use it in GitHub Desktop.
Save marceloxp/eed3653d4fc5a05e8afd to your computer and use it in GitHub Desktop.
Log SQL queries on CakePHP
$log = $this->Model->getDataSource()->getLog(false, false);
debug($log);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment