You can use __construct(), just like anywhere else in php. Remember to
call parent::__construct().

On Tue, Mar 24, 2009 at 16:11, dziobacz <[email protected]> wrote:
>
> How can I make constructor in symfony ? I have tried:
>
> class see_userActions extends sfActions
> {
>  private $id;
>
>  public function initialize()
>  {
>         $id=2;
>  }
> .................
> }
>
> Error:
> Strict Standards: Declaration of zobacz_uzytkownikaActions::initialize
> () should be compatible with that of sfAction::initialize()
> Call to a member function notify() 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