-- Andries Seutens <[EMAIL PROTECTED]> wrote (on Monday, 24 March 2008, 03:03 PM +0100): > I can't seem to be able to figure out how I can add custom errors to > certain error decorators of the form. > > Take for instance that I have a user signup, where the username field has > to be unique. When the user enters a username which already exists in the > database, I'd like to push an error to the decorator of the username field. > > Is this only possible with a custom validator?
You could also add a 'Description' decorator to the element, and populate it with the error message. However, I think the better solution would be a custom validator. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
