public static function RenderToHtml($template) { $args = func_get_args(); $tplData = array(); foreach($args as $arg) { if(is_object($arg)) { $arg = self::ObjectToArray($arg, false); } if(is_array($arg)) { $tplData = array_merge($tplData, $arg); } } return preg_replace(array_keys(CommonUtils::ArrayDecorateKeys($tplData, '/\{', '\}/')), array_values($tplData), $template); }