Try:

$this->form->setValue('first_name', 'Michael');

or use this instead to set default value

$this->form->setDefault('first_name', 'Michael');


On Tue, Sep 15, 2009 at 6:51 PM, mirfan <m.irfa...@gmail.com> wrote:
>
> Hi,
> I have a form and i want to assign value to its field from my
> action.class.php like
>
>     $this->form['first_name'] = 'Micheal';
>
> but its give me error how i will handle it?
>
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
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