Web Development

Seeing queries generated by your framework can be very useful. CakePHP, with its DebugToolbar, you can see the queries generated by your application. However, There is a limit to the Debug Toolbar. It shows a limited list.

Here’s a sure fire way to get all the queries generated:

$this->Model>getDataSource()->getLog(false, false);

Enjoy!