how can i redirect to another action passing 2 or more parameters? this code:
$this->redirect(\'input/new?year=\' . $year . \'&month=\' . $month);
Well, that's normal, "redirect" redirect to an absolute URL. You can do that:
$this->redirect($this->generateUrl('default', array('module' => 'input', 'action' => 'new', 'year' => $year, 'month' => $month)));