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 に答える