Example #1
0
 static function getDebugInfo()
 {
     $data = DebugInfo::getDebugInfo();
     if (!$data['enabled']) {
         return '';
     }
     SmartyWrap::assign('debug_messages', $data['messages']);
     SmartyWrap::assign('debug_runningTimeMillis', $data['runningTimeMillis']);
     SmartyWrap::assign('debug_ormQueryLog', $data['ormQueryLog']);
     return SmartyWrap::fetch('bits/debugInfo.tpl');
 }
Example #2
0
function smarty_function_getDebugInfo($params, &$smarty)
{
    return DebugInfo::getDebugInfo();
}