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'); }
function smarty_function_getDebugInfo($params, &$smarty) { return DebugInfo::getDebugInfo(); }