Date: 04/18/01
- Next message: fabrizio.ermini <email protected>: "Re: [phplib] Sessions in windows"
- Previous message: Paul Cusack: "[phplib] Sessions in windows"
- In reply to: fabrizio.ermini <email protected>: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Using a large mallet, fabrizio.ermini <email protected> whacked out:
> > 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).
Aaah, now it becomes clear. I found the obove line in page.inc, line 18:
$sess = new $feature["sess"];
where $feature["sess"] is occupied with "Example_Session" :-)
Thanks,
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: fabrizio.ermini <email protected>: "Re: [phplib] Sessions in windows"
- Previous message: Paul Cusack: "[phplib] Sessions in windows"
- In reply to: fabrizio.ermini <email protected>: "Re: [phplib] where is the 'new' operator for 'Example_Session'?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

