Hi,
I'd like to address the author of Phalcon\Forms module.
Having studied most of other components of Phalcon, I was disappointed to see that Form rendering/validation does not emit any sort of events.
As much as I hate ZF Form module, I admit that it's easy to implement custom rendering and react to validation failures.
I am not sure that existing $form->renderDecorated($elementName) is a good idea. Elements should have one method to render (plus, __toString() magic).
I'd like to be able to receive the following notifications when rendering form/element:
- beforeRender
- afterRender
- beforeValidation
- onValidateSuccess
- onValidateError
Obviously, Form should support __toString().
I'm sure you understand what I have mind. So, the question is whether there are any plans to improve Form functionality?
Regards, Temuri