I’ve looked through the API but cannot seem to find: what’s the equivalent of Zend\Form\Element->addError($message) in Zend 2? Or, how would I accomplish the same thing?
I have a registration field, where the username must be unique, so I’m waiting for the database to throw an exception, then flag the username field.
1 Answer