2008年10月27日星期一

Re: [fw-mvc] Zend_Form: multiple validator prefix paths

Ok, I got some to work. For validator, I got this to work...

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

I guess, I'm just not 100% on the difference between setting an
elementalPrefixPath vs just a PrefixPath. Does that mean a Form's prefix
path doesn't propagate through to it's elements, so you have to set it for
each element?

However, a decorator version of the "shortcut" doesn't work...

prefixPath.decorator.My_Form_Decorator = "My/Form/Decorator/"

I guess it's not use the same code to parse decorators and validators? It
would be nice if that worked.

Cheers,
Fozzy
--
View this message in context: http://www.nabble.com/Zend_Form%3A-multiple-validator-prefix-paths-tp16494104p20193428.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: