On 21 Giu, 19:49, titiyoyo <terence.pi...@gmail.com> wrote: > i have a simple and basic quesion here about symfony : how can i set > values into a form field from the controller in symfony ? > > I looked again and again and again without finding an answer. > > So for now i have this below. > > Please help me, it's quite urgent !! > > public function executeNew(sfWebRequest $request) > { > $fiche = new Fiche(); > $fiche->save(); > > $a = $fiche->getId(); > > $this->form = new ArtisteForm($artiste); > }
If ArtisteForm is a model form, you need to pass an object of that model (in the code you provided, you're passing a non-existent variable) cheers Massimilano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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