Re: QuickForm_Controller touches $_POST-variables?

From: Date: Mon, 12 Jul 2004 18:06:41 +0000
Subject: Re: QuickForm_Controller touches $_POST-variables?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13664@lists.php.net to get a copy of this message
Just a suggestion, the $_POST array is empty because QFC performs a redirect in the next action using header('Location:'...) IIRC. Thus, no $_POSt values are being sent.
I dont really knew that QFC does that, but the error has been a different on my side - _its obviously not an no error in QFC_. For those who care: I handed $_POST as argument (call by value and _not_ by reference) to a method which does nothing, but copy it again to another variable and then leaves $_POST alone. When removing this operation and access $_POST directly from the methode the behavior is as xpected. This is pretty strange to me. However, does anyone think that it would make sense to write some wrapper classes for superglobals? From my point of view this would make PHP more object oriented, because I dont really like the idea using global variables at all (I think a singeltonized object taking care of superglobals is also more easy to minitor/trace/log)... What do you think about it? Maybe the language designers did already take care of this in version 5? Special thanks to Bertrand and Alexey for your hints. I really appreciate you take the time to help me with getting into QFC and QF ! cheers, Matthias

« previous php.pear.general (#13664) next »