/** * Initialize Bootstrap Configuration * @param bool|true $WithConfig - Specifies Should Bootstrap Class Initialize Itself With Configuration File Or Without It */ public static function Initialize($WithConfig = true) { if ($WithConfig) { Bootstrap::LoadConfig(); } Bootstrap::LoadComponents(); if (Bootstrap::$isDebugEnabled) { Bootstrap::$PageLoadTime = System\Utilities::PageLoadTime(true); } }
function display($template = NULL, $cache_id = NULL, $compile_id = NULL, $parent = NULL) { global $FCCore; if ($FCCore['debug']) { $this->assign('PageLoadTime', System\Utilities::PageLoadTime()); $this->assign('MemoryUsage', System\Utilities::GetMemoryUsage()); $this->assign('Debug', true); } else { $this->assign('Debug', false); } try { Smarty::Display($template . ".tpl"); } catch (Exception $e) { Debugger::ReportError(3, 1, $template . ".tpl"); } }