cakephp - echo $this->element('sql_dump'); without debug and in a mail -
in cakephp function $this->element('sql_dump')
prints executed sql querys on screen. $this->element('sql_dump')
available debug mode = 2
this works fine next work:
debug mode has 0 i not wantecho
sql dump on screen mail service myself this has happen click on button (send bug report) is possible, how?
thanks help
to debugging info when debug mode 0 have manipulate info source before executing query.
in controller:
$db = $this->mymodel->getdatasource(); $db->fulldebug = true; $this->mymodel->find(...); $log = $db->getlog(); $db->fulldebug = false; // email log
cakephp
No comments:
Post a Comment