To add a parameter, in your action code:
$form = new WhateverForm($object, array('param' => 'value'));

In your form:
$this->getOption('param');

On Apr 11, 2:24 pm, dziobacz <[email protected]> wrote:
> I action.class.php I have:
> $this->form = new Change_dataForm("Michael");
>
> And in Form:
> private $something;
>
>   public function __construct($name)
>   {
>     $something = $name;
>   }
>
> But I have an error:
> Fatal error: Call to a member function getDefaults() on a non-object
>
> WHY ??
--~--~---------~--~----~------------~-------~--~----~
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