getTemplateVars('form'); if(!IsSet($form) || !is_a($form, 'form_class')) throw(new Exception('the "form" template variable was not assigned to the form object')); $form->AddDataPart($params['data']); $form->AddInputHiddenPart($params['input']); return ''; } ?>