I am using KPHHP 2.3 with the debug kit plugin and print a comment after each SQL query in each log need to. Is it possible to modify it?
To solve the problem, I have the model in
called Mysql
/ Data source DboCustomSource
. To modify the variable $ sql
here I overwrite the implemented
to DboSource
.
Uses App :: ('Mysql', 'Model / Datastra / Database'); Class DboCustomSource Mysql {executes public function ($ sql, $ options = array (), $ params = array ()) {$ sql = 'Comment'; Return Parent :: Execution ($ sql, $ option, $ params); }}
The database configuration needs to be modified by data source
: 'dataource' = & gt; 'DboCustomSource'
.
Comments
Post a Comment