Sometimes you need to see sql queries log, but output on webpage is not handy. So, I've created datasource that logs queries into file. It was simple
So,
here's what CakePHP says about custom DataSources. The one we need is just an extention of Mysql datasource, so we'll have only one method.
1. Create new file app/Model/Datasource/Database/MysqlEx.
(
Read more... )