From: Richard S. <ri...@ri...> - 2003-05-31 07:05:42
|
It seems like the $core object is missing from version 9.2? I really liked using $core on some pages like the index file just because it is less typing although I can type for myself a reference for it ($core=&$GLOBALS['core']) which takes up no extra memory. Is there a reason why this variable was removed? Regards, Richard S. |
From: Don S. <do...@se...> - 2003-05-31 07:12:44
|
I don't know about reasons why. Security perhaps. But definitely get used to using $GLOBALS["core"]. $core didn't work in some scripts in 0.9.1 also, that's when I got in the habit of using the GLOBALS instead. Don. On Fri, 30 May 2003, Richard Sumilang wrote: > It seems like the $core object is missing from version 9.2? I really > liked using $core on some pages like the index file just because it is > less typing although I can type for myself a reference for it > ($core=&$GLOBALS['core']) which takes up no extra memory. Is there a > reason why this variable was removed? > > Regards, > > Richard S. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > > |
From: Matthew M. <ma...@tu...> - 2003-05-31 15:24:20
|
Richard: Yes, I liked using it too. However for the sake of standards (and possible security), we dumped it for the GLOBALS array. In the future, we want to think about not using SESSIONS or GLOBALS at all. What I mean is that you the developer should not have to worry if a variable is declared or if a session is created. I am finding the whole GLOBALS theme variable thing tedious and sloppy. So "$GLOBALS['core']" will turn into "core::" (or more likely PHPWS_Text::, PHPWS_DB::, etc.). $_SESSION['translate'] would be PHPWS_Translate:: and so on. It should not be incumbent upon to the module developer to remember session names and the like. We will talk more about these changes down the road in the developer chatroom and here of course. In the end though 0.9.3 is going to blow away 0.9.2. Matt > I don't know about reasons why. Security perhaps. But definitely get > used to using $GLOBALS["core"]. > Don. >> It seems like the $core object is missing from version 9.2? I really >> liked using $core on some pages like the index file just because it is >> less typing although I can type for myself a reference for it >> ($core=&$GLOBALS['core']) which takes up no extra memory. |
From: Richard S. <ri...@ri...> - 2003-06-02 00:29:29
|
For other languages it seems like kinda sloppy thing to do but in PHP I thought it was fine. So in PHPWS 9.3 those will be gone? I'm going to miss them and have to restructure some code :-\. At any rate, cheers and keep up the great work! Best Regards, - Richard S. On Saturday, May 31, 2003, at 08:14 AM, Matthew McNaney wrote: > Richard: > > Yes, I liked using it too. However for the sake of standards (and > possible > security), we dumped it for the GLOBALS array. > > In the future, we want to think about not using SESSIONS or GLOBALS at > all. What I mean is that you the developer should not have to worry if > a > variable is declared or if a session is created. I am finding the whole > GLOBALS theme variable thing tedious and sloppy. > > So "$GLOBALS['core']" will turn into "core::" (or more likely > PHPWS_Text::, PHPWS_DB::, etc.). $_SESSION['translate'] would be > PHPWS_Translate:: and so on. It should not be incumbent upon to the > module > developer to remember session names and the like. > > We will talk more about these changes down the road in the developer > chatroom and here of course. In the end though 0.9.3 is going to blow > away > 0.9.2. > > Matt > >> I don't know about reasons why. Security perhaps. But definitely get >> used to using $GLOBALS["core"]. >> Don. > >>> It seems like the $core object is missing from version 9.2? I really >>> liked using $core on some pages like the index file just because it >>> is >>> less typing although I can type for myself a reference for it >>> ($core=&$GLOBALS['core']) which takes up no extra memory. > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > > |
From: Matthew M. <ma...@tu...> - 2003-06-02 12:00:30
|
> For other languages it seems like kinda sloppy thing to do but in PHP I > thought it was fine. So in PHPWS 9.3 those will be gone? We'll see. In many cases it seems sloppy to keep a session running just in case another module needs it. We want to eliminate that. 0.9.3 will be backward compatible in many respects, but we would like to phase things out as we go onward. Matthew McNaney Internet Systems Architect Electronic Student Services Appalachian State University Phone: 828-262-6493 phpwebsite.appstate.edu ess.appstate.edu |