/** * Function that is called to show all variables and all the page! */ public static function show() { $o = rad_rsmarty::getSmartyObject(); //TODO: optimize memory if (count(self::$_html)) { foreach (self::$_html as $key => $value) { $o->assign($key, $value); } } $o->assign('_CURR_LANG_', rad_lang::getCurrentLanguage()); if (isset(self::$sendedParams[self::$_alias->filename])) { foreach (self::$sendedParams[self::$_alias->filename] as $pkey => $pval) { $o->assign($pkey, $pval); } } $file = rad_themer::getFilePath(null, 'templates', 'core', 'maintemplates' . DS . self::$_alias->filename . '.tpl'); rad_instances::setCurrentTemplate($file, true); $o->display($file); }