Show
Ignore:
Timestamp:
03/09/06 17:22:35 (6 years ago)
Author:
john
Message:

added sql logging in debug mode into AR

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/templates/error.phtml

    r117 r166  
    4949<?php endif; ?> 
    5050 
     51<?php if(count($GLOBALS['ACTIVE_RECORD_SQL_LOG'])): ?> 
     52<p><a href="#" onclick="expandContract('sql_trace')">Show SQL trace</a> 
     53<pre id="sql_trace" style="display:none"> 
     54<code style="word-wrap: break-word;"> 
     55<?php $i = 0 ?>     
     56<?php foreach(array_reverse($GLOBALS['ACTIVE_RECORD_SQL_LOG']) as $sql): ?> 
     57#<?php echo $i++ ?> <?php echo trim($sql) ?> 
     58<?php endforeach; ?>         
     59</code> 
     60</pre> 
     61<?php endif; ?> 
     62 
    5163<p><a href="#" onclick="expandContract('session_dump')">Show $_SESSION dump</a></p> 
    5264<div id="session_dump" style="display:none"><pre class='debug_dump'>