O'Reilly logo

Zend Framework 1 to 2 Migration Guide by Bart McLeod

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Forms

Zend\Form is a complete rewrite of Zend_Form. You won’t find much that is backwards compatible in there. Compared to its predecessor, Zend\Form offers a clear separation of concerns. As a consequence, filtering and validating form values have been separated out into Zend\InputFilter. Zend\InputFilter takes care of both filtering and validating, while displaying forms is taken care of by a set of dedicated view helpers found in the Zend\Form\View\Helper namespace.

With Zend Framework 1, you could use Zend_Form in two ways, depending on whether you liked the decorator system. In the former case, you would only use very few decorators (the View_Helper being the absolute minimum). In the latter case, you might even have built your own decorator ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required