Hi, Your form is invalid, because your bind call is not correct. A missing array_merge call is missing there. Try this one:
> protected function processForm(sfWebRequest $request, sfForm $form) { > $form->bind( array_merge($request->getParameter($form->getName(), > array() ), $request->getFiles($form->getName()))); > if ($form->isValid()) { > $tb_reservacion = $form->save(); > $this->redirect('reservacion/edit?id_reservacion='. > $tb_reservacion->getIdReservacion()); > } else { // only for debugging echo "DAMN, THIS FORM IS NOT VALID"; } > > } - Frank Am 15.05.2009 um 05:30 schrieb Reynier Perez Mira: > protected function processForm(sfWebRequest $request, sfForm $form) { > $form->bind($request->getParameter($form->getName()), $request- > >getFiles($form->getName())); > if ($form->isValid()) { > $tb_reservacion = $form->save(); > $this->redirect('reservacion/edit?id_reservacion='. > $tb_reservacion->getIdReservacion()); > } > } > > When I try to insert the data nothing happen and I don't know why > because none error appears. Any help or tip? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---