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 > > |