38 $form =
new AutoForm(
$contactUs,
"POST",
"/action/email/contact_us_dialog",
"ContactUs_form");
41 $form->ajaxSubmit(
"function(result) {new EmailManager().contactUsResult(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
42 $form->button(
"Cancel",
"new EmailManager().closeDialog()",
null,
true);
56 echo
$form->writeScript();
static buildContactUsForm($form, $requiredMessage=true)
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
$method
Pull out a simple reference to the request method.