Using Zend_Form for validation in a view and model

In this book (the link goes to the part that interests me), it is proposed to use one instance of Zend_Form to test both the model and the view. I'm wondering how to do this, given that the shapes probably don't match the structure of the models. How can this be achieved? It is logical not to duplicate the code that performs the verification, but I always did it separately.

+3
source share
1 answer

In this article from the ZF Project, Matthew Weyer O'Finney explains one approach:

http://weierophinney.net/matthew/archives/200-Using-Zend_Form-in-Your-Models.html

+4
source

Source: https://habr.com/ru/post/1794014/


All Articles