I have found something like that:
public function __construct($defaults = array(), $options = array(),
$CSRFSecret = null)
{
parent::__construct($defaults,$options,$CSRFSecret);
}
But I don't know what is going on ? Should i use it ? :)
On 11 Kwi, 15:32, Sid Bachtiar <[email protected]> wrote:
> You should use:
>
> $this->something = $name;
>
> rather than:
>
> $something = $name;
>
>
>
> On Sun, Apr 12, 2009 at 1:24 AM, 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 ??
>
> --
> Blue Horn Ltd - System Developmenthttp://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 [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
-~----------~----~----~----~------~----~------~--~---