Skip to content

Instantly share code, notes, and snippets.

@merk
Created April 17, 2012 01:14
Show Gist options
  • Save merk/2402717 to your computer and use it in GitHub Desktop.
Save merk/2402717 to your computer and use it in GitHub Desktop.
<?php
public function contactAction()
{
/** @var \Infinite\ContactBundle\Form\Handler\ContactFormHandler $formHandler */
$formHandler = $this->get('infinite_contact.contact.form.handler');
if ($formHandler->process()) {
return $this->redirect($this->generateUrl('InfiniteContactBundle_contact_sent'));
}
return $this->render('InfiniteContactBundle:Contact:contactpage.html.twig', array(
'form' => $this->get('infinite_contact.contact.form')->createView(),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment