how can i redirect to another action passing 2 or more parameters? this code:
$this->redirect('input/new?year=' . $year . '&month=' . $month);
results in URL:
http://.../input?year=2009&month=9
In the currently supported Symfony versions (2.7+) it's even easier (plus, you can optionally add also the status code at the end):
return $this->redirectToRoute(
'default',
array('year' => $year, 'month' => $month),
Response::HTTP_MOVED_PERMANENTLY // = 301
);