i wonder if a Zend_Form_Element
has filters attached to it, will Zend_Validate
validate the filtered or unfiltered inputs?
views:
21answers:
2
+1
A:
Unfiltered. Filters applied to the elements when you try to get their values via getValue() method.
Ololo
2010-07-25 22:28:04
so i guess u mean unfiltered if i use, what i see in most tuts, `$form->isValid($this->getRequest()->getParams())` if i do something like `$form->isValid($form->getValues())` it will be filtered i guess?
jiewmeng
2010-07-26 06:21:09
A:
i guess it depends on what u pass as the values. in the context of forms,
$form->isValid($this->getRequest()->getParams()); // unfiltered
$form->isValid($form->getValues()); // filtered, cos getValues() returns filtered values
jiewmeng
2010-07-26 09:18:46