Hi! First I want to say I am grateful to the community for this great framework!

I'm writing to anyone who uses custom validators with Zend_Form that
make use of $context to access other form elements.

As expected, when using custom validators with Zend_Form, the $value
parameter supplied to the isValid function is filtered using the
element's filter chain. Unexpectedly, the rest of the form elements
accessible via the $context parameter are *not* filtered using their
respective filter chains.

Since the $value supplied to isValid is filtered wouldn't it make
sense to have the $context items filtered as well?

Perhaps this can be mentioned in the docs and/or changed in future
versions. It really took me for a spin. Thoughts anyone?

Best,

DM

Reply via email to