I'll give this a shot (since I was just working on something similar for
myself).

To set the prefixPath for validators, you have to use "elementPrefixPath",
not "prefixPath".

----
elementPrefixPath.validate.My_Validator = "My/Validator/"
----

This is "short hand" notation and sets everything you need for custom
validators, this is the how it looks:

elementalPrefixPath.[type].[prefix] = [prefix path]

This would be like doing this...
----
elementPrefixPath.validate.myname.prefix = "My_Validator/"
elementPrefixPath.validate.myname.path = "My/Validator/"
elementPrefixPath.validate.myname.type = "validate"
----

prefixPath.prefix = "FHG"  is used for decorators.  I ran into this problem
myself.

Cheers!
Fozzy

-- 
View this message in context: 
http://www.nabble.com/Adding-custom-validator-to-Zend-Form-tp19962479p20234675.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to