symfony how to retrieve parameters in redirectToRoute
<p>I'm using symfony.
In one action, I fill in some form, use getData to get the filled in data and want to pass to another action to do query in database.</p>

<pre><code>$input=$form['input']-&gt;getData();
return $this-&gt;redirectToRoute('anotherpage', array('input'=&gt;$input ));
</code></pre>

<p>In action of anotherpage, how to retrieve the information of input?
It shows no default value for it which means I'm not passing it correctly.
Hope to get some help. THANKS.</p>