-
-
Save kinglozzer/5fe4545e0d8b97cd9864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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