RE: [Phplib-users] Next auth issue, php variable scope issue
Brought to you by:
nhruby,
richardarcher
From: Rob H. <rob...@ws...> - 2002-10-14 13:32:04
|
I will work from here and see if I can figure something out. Rob Hutton Web Safe www.wsafe.com > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Giancarlo > Sent: Monday, October 14, 2002 4:34 AM > To: php...@li... > Subject: Re: [Phplib-users] Next auth issue, php variable scope issue > > > Il 19:48, domenica 13 ottobre 2002, Rob Hutton ha scritto: > > This does not seem to be an auth issue per say, but maybe Gian > or someone > > can help. Here is my app structure > > > > index.php (wrapper page) -> instantiates sitePage (Object that does the > > work) > > > > sitePage has several functions that are called to process a > template. If I > > put the page_open inside one of those functions, then the sess, > auth, etc > > variables never show up in $GLOBALS. If I move the page_open > to index.php, > > then I get them in $GLOBALS correctly. > > > > That's a new usage. Interesting. The idea of a page class is > coming to my mind. > I've tried it and it seems to work to me, with reg_glob off. > This is a modified defauth.php3 > > Gian > > > > > > |