Right, Zend_Filter_Input gives no access to invalid data, by design. The idea is that Zend_Filter_Input is a "cage" and only valid data can be retrieved from it.
However, Zend_Filter_Input does not do anything destructive to the PHP superglobals, so if you need the raw data, you can still get them. Just don't trust them. :-) Regards, Bill Karwin > -----Original Message----- > From: Andries Seutens [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 20, 2007 3:32 AM > To: Pádraic Brady > Cc: Eric Coleman; Zend Framework General > Subject: Re: [fw-general] No way to get invalid data from > Zend_Filter_Input > > > That is correct, Zend_Filter_Input doesnt do any > encapsulation of your data. Thus you can still use: > $_POST or $this->getRequest()->getParam('foo') when using ZF's MVC. > > Best, > > > Andries Seutens > http://andries.systray.be > > > Pádraic Brady schreef: > > Hi Eric, > > > > From what I recall Zend_Filter_Input left $_POST intact so you can > > still take raw data from that source. > > > > Paddy > > > > Pádraic Brady > > http://blog.astrumfutura.com > > http://www.patternsforphp.com > > > > > > ----- Original Message ---- > > From: Eric Coleman <[EMAIL PROTECTED]> > > To: Zend Framework General <[email protected]> > > Sent: Wednesday, June 20, 2007 5:12:37 AM > > Subject: [fw-general] No way to get invalid data from > > Zend_Filter_Input > > > > While playing with a method to keep form data in sync when a > > validation/filtering error occurs, I realized that there is > no method > > to get the invalid data back... > > > > So, basically, if you submit something that fails > validation, it gets > > nuked unless you store your own copy of $_POST. This hardly seems > > like the correct way to do things. > > > > Bill, or someone, can we get a method added to Zend_Filter_Input to > > solve this? > > > > Regards, > > Eric > > > > > > > ---------------------------------------------------------------------- > > -- > > Boardwalk for $500? In 2007? Ha! > > Play Monopoly Here and Now > > > <http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc > > ?gamekey=monopolyherenow> (it's updated for today's > economy) at Yahoo! > > Games. > > > ---------------------------------------------------------------------- > > -- > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.472 / Virus Database: 269.9.1/854 - Release Date: > > 19/06/2007 13:12 > > > > > -- > Andries Seutens > http://andries.systray.be > >
