Hi, i'm sorry, but that changed nothing. I have renamed the folder to Validate (class\Forms\Validate), as well as the class to FHG_Validate_isEqual, or have i misunderstood you?
-----Ursprüngliche Nachricht----- Von: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. Oktober 2008 22:59 An: [email protected] Betreff: Re: [fw-general] Adding custom validator to Zend Form -- Lorenz, Marcus <[EMAIL PROTECTED]> wrote (on Monday, 13 October 2008, 10:39 PM +0200): > Hi there, > > i have a problem with adding a custom created validator to an (Zend-) > form by config. This is my config: > > prefixPath.prefix = "FHG" > prefixPath.path = "class/Forms" > ... > elements.password2.options.validators.isEqual.validator="isEqual" > elements.password2.options.validators.isEqual.options.toField="password1" > > The Validator-File is located in class\Forms\Validator The standard prefix ends in "Validate_", not "Validator_" -- either rename,or declare an explicit validate prefix path pointing to your directory: prefixPath.prefix = "FHG_Validator" prefixPath.path = "class/Forms/Validator" prefixPath.type = "validate" > The class is named FHG_Validator_isEqual. > > I will always get the message "Plugin by name IsEqual was not found in > the registry". > > What am i doing wrong? The same way using decorators works. > > Thanks in advance, > > Marcus > > > This e-mail and any attachment is for authorised use by the intended > recipient > (s) only. It may contain proprietary material, confidential > information and/or be subject to legal privilege. It should not be > copied, disclosed to, retained or used by, any other party. If you are > not an intended recipient then please promptly delete this e-mail and > any attachment and all copies and inform the sender. Thank you. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/ This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
