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