0

Hi I have a modal contact form on my site that is available on each page of my site. When I render the contact controller on each page I was trying to use this

{% render controller('CorporateSiteBundle:Forms:contactUs', { 'contactOpen': contactOpen is defined, route: app.request.requestUri}) %}

Then on my controller page from all my contact form I wanted to grab that 'route' value that I was sending over. This is what I used:

$request->query->get('route');

But the form just seems to fail when it submits. Can anyone help with where I'm going wrong? Thanks

4

1 回答 1

0

你应该试试

$request->get('contactOpen');
于 2013-08-16T00:16:38.300 回答