[NFR] Implement method \Phalcon\Forms\Element::setMessage()
It would be very useful methods:
\Phalcon\Forms\Element::setMessage(string $message)
and
\Phalcon\Forms\Form::setMessage(string $elementName, string $message)
Or may be this method should be named appendMessage
+1 Error messages should be attached to the form elements, not the form itself: https://github.com/phalcon/cphalcon/issues/542#issuecomment-16577569
The current implementation is not logical and has an artificial restriction: https://github.com/phalcon/cphalcon/blob/1.1.0/ext/forms/element.c#L662
Form should refer to the elements to get the error messages, but not vice versa.
:+1:
This is implemented in 1.2.0