Skip to content
Snippets Groups Projects

on bootstrap

Merged Ghislain Loas requested to merge dev#99489_magasin_de_themes_bases_sur_bootstrap into master
Compare and
9 files
+ 149
47
Preferences
Compare changes
Files
9
@@ -93,6 +93,26 @@ class FormulaireController extends ZendAfi_Controller_Action {
}
}
public function contactAction() {
$contact = (new Class_FormulaireContact)
->setForm(new ZendAfi_Form_ContactForm)
->setView($this->view)
->initForm();
$this->view->form->displayBibSelector();
if (! $this->_request->isPost())
return;
?>
\ No newline at end of file
if (! $this->view->form->isValid($this->_request->getPost()))
return;
try {
$contact->send($this->_request);
$this->_helper->notify($this->_('Votre message a bien été envoyé.'));
$this->_redirect('/');
} catch (Exception $e) {
$this->view->error = $e->getMessage();
}
}
}