cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[NFR] Implement method \Phalcon\Forms\Element::setMessage()

Open iforp opened this issue 13 years ago • 4 comments

It would be very useful methods: \Phalcon\Forms\Element::setMessage(string $message) and \Phalcon\Forms\Form::setMessage(string $elementName, string $message)

iforp avatar Apr 25 '13 16:04 iforp

Or may be this method should be named appendMessage

iforp avatar Apr 25 '13 16:04 iforp

+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.

nikolasha avatar Apr 26 '13 11:04 nikolasha

:+1:

roman-kulish avatar May 10 '13 01:05 roman-kulish

This is implemented in 1.2.0

ghost avatar Jun 08 '13 18:06 ghost