My translation of how that should be is something like this:

elements.myField.prefixPaths.validator.prefix = "My_Validate"
elements.myField.prefixPaths.validator.path = "My/Validate/"
elements.myField.prefixPaths.validator.type = "validate"

elements.myField.options.validators.Example.validator = "Example"

but it throws a "Plugin by name Example was not found in the registry"
error. "My/Validate/Example.php" does exist in the path, and works
when built as a class.


El Jeffe,

Try this:

;Validator must be added before any elements to be used with all elements. I put mine right after the action and method.
action = "Foo"
method="post"
elementPrefixPath.validate.prefix = "My_Validate"
elementPrefixPath.validate.path = "My/Validate/"

; Stuff for the element
elements.MyField.options.validators.validatoralias.validator = "ExampleValidator" elements.MyField.options.validators.validatoralias.options.ExtraArugemnentsPassedToValidator = "foobar"

Have fun with this stuff!  Ug!

Hans Kaspersetz
Cyber X Designs
http://www.cyberxdesigns.com
X-Cart, Joomla, MODx, Zend Framework, and Custom PHP Programming we can do it all. Visit our website to learn more.


_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to