News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney's Blog:
ZF2 Forms in Beta5
July 09, 2012 @ 09:34:05

In this new post to his blog, Matthew Weier O'Phinney about some of the recent updates in the latest beta (beta5) of the Zend Framework 2's "Forms" component.

Forms are a nightmare for web development. They break the concept of separation of concerns: they have a display aspect (the actual HTML form), they have a validation aspect and the two mix, as you need to display validation error messages. On top of that, the submitted data is often directly related to your domain models, causing more issues. [...] Add to this that the validation logic may be re-usable outside of a forms context, and you've got a rather complex problem.

He talks about the newly-rewritten form component along with the new InputFilter to accompany it. He includes an example of using this new component - making a User form that, based off of some annotation rules, does some validation on the property values and things like "required" and custom types. He also talks about some of the other features included in the new package like hydration, complex annotation support and tools to work with collections.

You can download this latest beta release from the packages.zendframework.com site.

0 comments voice your opinion now!
zendframework2 form component beta5 annotation tutorial


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend Framework 2 - Hydrators, Models and the TableGateway Pattern

php|architect: Zen(d) and the Art of Email

HowTo Forge: How To Harden PHP5 With Suhosin On Fedora 7

SitePoint PHP Blog: Bower vs BowerPHP

Port 25 Blog: FastCGI and PHP Works with IIS6 Too


Community Events

Don't see your event here?
Let us know!


laravel development opinion community unittest introduction podcast api framework series library interview video language conference laravel5 voicesoftheelephpant psr7 extension release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework