diff --git a/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php b/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php index 4d8fab0..8b5e76e 100644 --- a/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php +++ b/src/AmsterdamPHP/Bundle/SiteBundle/Controller/ContactController.php @@ -17,10 +17,10 @@ class ContactController extends Controller /** * @Route("/", name="amsphp_contact") * @Route("/", name="amsphp_be_a_speaker") - * @Route("/", name="amsphp_be_a_sponsor") + * @Route("/sponsor-us", name="amsphp_be_a_sponsor", defaults={"sponsor"=true}) * @Template() */ - public function indexAction() + public function indexAction($sponsor = false) { $form = $this->createForm('amsterdamphp_site_contact_type'); @@ -39,7 +39,8 @@ public function indexAction() } return [ - 'form' => $form->createView() + 'form' => $form->createView(), + 'sponsor_context' => $sponsor ]; } } diff --git a/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig new file mode 100644 index 0000000..edb90b5 --- /dev/null +++ b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Contact/_sponsor_us.html.twig @@ -0,0 +1,22 @@ +
If you wish to sponsor AmsterdamPHP we have many options available to you. Please look over the list below and pick an option.
+ +