public static function initSmarty($initServices = true) { //initialize SMARTY self::$smarty = new OzoneSmarty(); self::$smarty->load_filter('pre', 'defmacrohelp'); if ($initServices) { self::initServices(); } self::parseMacros(); self::updateSmartyPlain(); self::$smartyInitialized = true; }