Re: [Phplib-users] Next auth issue, php variable scope issue
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2002-10-14 08:38:27
|
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 |