Reputation: 1147
In CakePhp < 3 it was possible to get a list of the executed queries in a debug view using
echo $this->element('sql_dump');
In Cake 3 the according element file is no longer in the core. Is there a Cake 3 equivalent? I could not find anything about this in the migration guide.
Upvotes: 1
Views: 1601
Reputation: 1852
Sure there are debugging features builtin.
You can use debug()
as explained on Debugging Queries and ResultSets.
But you should better add DebugKit and not only have the SQL in a tab for whenever you need it but also a wealth of debugging information.
Upvotes: 5