If you mean how to set default values, then try setDefaults()

http://www.symfony-project.org/api/1_4/sfForm#method_setdefaults

On 21 čvn, 19:49, titiyoyo <terence.pi...@gmail.com> wrote:
> Hi there,
>
> 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 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

Reply via email to