Date: 04/17/01
- Next message: Paul Cusack: "[phplib] Sessions in windows"
- Previous message: ioman <email protected>: "[phplib] =?iso-8859-2?Q?phplib &&mysql 3.23.36 && php4.0.4p1?="
- Maybe in reply to: Stefan Jösch: "[phplib] where is the 'new' operator for 'Example_Session'?"
- Next in thread: fabrizio.ermini <email protected>: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you call the page open function
page_open(array("sess"=>"Example_Session"));
code in page.inc will create the object for you.
-Stewart
-----Original Message-----
From: fabrizio.ermini <email protected> [mailto:fabrizio.ermini <email protected>]
Sent: 17 April 2001 17:49
To: Stefan Jösch; phplib <email protected>
Subject: Re: [phplib] where is the 'new' operator for 'Example_Session'?
> 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>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Paul Cusack: "[phplib] Sessions in windows"
- Previous message: ioman <email protected>: "[phplib] =?iso-8859-2?Q?phplib &&mysql 3.23.36 && php4.0.4p1?="
- Maybe in reply to: Stefan Jösch: "[phplib] where is the 'new' operator for 'Example_Session'?"
- Next in thread: fabrizio.ermini <email protected>: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

