Hi,


i'm trying to set defaults values dinamically for a form. Works using
the configure method in my form class, ExemploForm but not from the
action.


i followed the steps of the symfony's manual:
http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_01_sub_defining_default_values_for_fields
Listing 1-14


public function executeMyAction($request)
{
  $this->form = new ExemploForm(array('email' => 'Your Email Here'));

  // ...
}


But i'm getting an error:

Catchable fatal error: Argument 1 passed to
sfFormPropel::__construct() must be an instance of BaseObject, array
given...


Hwo can i fix it ?


Thanks



Augusto Morais

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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