public static function Initialize() { Autoloader::InitialCheck(); Autoloader::LoadConfig(); Autoloader::LoadComponents(); if (Autoloader::$IsDebugEnabled) { Autoloader::$PageLoadTime = Utilities::PageLoadTime(true); } }
public static function Initialize($WithConfig = true) { if ($WithConfig) { Autoloader::LoadConfig(); } Autoloader::LoadComponents(); if (Autoloader::$IsDebugEnabled) { Autoloader::$PageLoadTime = Utilities::PageLoadTime(true); } }
function display($template = NULL, $cache_id = NULL, $compile_id = NULL, $parent = NULL) { global $FCCore; if ($FCCore['debug']) { $this->assign('PageLoadTime', Utilities::PageLoadTime()); $this->assign('MemoryUsage', Utilities::GetMemoryUsage()); $this->assign('Debug', true); } else { $this->assign('Debug', false); } Smarty::Display($template . ".tpl"); }
function display($template = NULL, $cache_id = NULL, $compile_id = NULL, $parent = NULL) { global $FCCore; if ($FCCore['debug']) { $this->assign('PageLoadTime', Utilities::PageLoadTime()); $this->assign('MemoryUsage', 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"); } }