Date: 04/17/01
- Next message: ioman <email protected>: "[phplib] =?iso-8859-2?Q?phplib &&mysql 3.23.36 && php4.0.4p1?="
- Previous message: Maxim Derkachev: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- In reply to: Stefan Jösch: "[phplib] where is the 'new' operator for 'Example_Session'?"
- Next in thread: Stefan Jösch: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Reply: Stefan Jösch: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'm relatively new to phplib, and I can't find the 'new' operator, which
> creates a new instance of the 'Example_Session' in local.inc, i.e. I'm
> missing a line like
>
> $Sess = new Example_Session();
>
> Could someone explain to me how object creation in phplib works?
>
local.inc simply include objects definition, but not actually
instanciate them.
The logic is that you create the objects only when and where you
need them. And there's a nice "starter" function that does all the
work of creatin the objects, or retrieving them from session
container if they already exist, and it's page_open() (in page.inc).
HTH, bye
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Fabrizio Ermini Alternate E-mail:
C.so Umberto, 7 faermini <email protected>
loc. Meleto Valdarno Mail on GSM: (keep it short!)
52020 Cavriglia (AR) faermini <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: ioman <email protected>: "[phplib] =?iso-8859-2?Q?phplib &&mysql 3.23.36 && php4.0.4p1?="
- Previous message: Maxim Derkachev: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- In reply to: Stefan Jösch: "[phplib] where is the 'new' operator for 'Example_Session'?"
- Next in thread: Stefan Jösch: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Reply: Stefan Jösch: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

