Skip to content

Instantly share code, notes, and snippets.

@kinglozzer
Created May 13, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinglozzer/5fe4545e0d8b97cd9864 to your computer and use it in GitHub Desktop.
Save kinglozzer/5fe4545e0d8b97cd9864 to your computer and use it in GitHub Desktop.
<?php
/**
* @return Form
*/
public function ContactForm() {
// Fields stuff
$form = new Form($this, 'ContactForm', $fields, $actions, $validator);
$form->setAttribute('novalidate', true);
$form->disableSecurityToken();
$form->setRedirectToFormOnValidationError(true);
$form->setFormAction($form->FormAction() . '?u=1#' . $form->FormName());
return $form;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment