That's it! it works. Thank you all for the answers.

:-)

On Feb 22, 1:57 pm, ckemmler <[email protected]> wrote:
> Here's what I get when trying your method:
>
> Catchable fatal error: Argument 1 passed to sfFormPropel::__construct
> () must be an instance of BaseObject, array given, called in /eclipse/
> workspace/playtype/apps/frontend/modules/media/actions/
> actions.class.php on line 25 and defined in /eclipse/workspace/
> playtype/lib/symfony/plugins/sfPropelPlugin/lib/form/
> sfFormPropel.class.php on line 35
>
> and indeed, in sfFormPropel.class, I can see the following signature:
>
> public function __construct(BaseObject $object = null, $options = array
> (), $CSRFSecret = null)
>
> On Feb 18, 10:11 pm, Bernhard Schussek <[email protected]> wrote:
>
> > The first parameter of sfForm accepts default values for your fields.
> > You can use it to fill your hidden fields as well:
>
> > $form= new MyForm(array('hidden_field' => 'hidden_value'));
>
> > If you do this in the action, you can access therequestobjectas always.
>
> > public function executeHurray(sfWebRequest $request)
> > {
> >   $this->form= new MyForm(array('hidden_field' =>
> > $request->getParameter('hidden_param')));
>
> > Bernhard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to