News Feed
Sections




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

Jim Plush's Blog:
Rethinking Zend Models Part 3 - Validation
July 22, 2009 @ 10:06:04

Jim Plush is back with a third part of his look at rethinking models in Zend Framework applications (part one, part two), this time focusing on validation rules.

I've gone ahead and added validation to our test project. If you take a look at the indexController you'll now see I've added an updateAction that uses a Zend Form component. The goal of the validation was to provide context sensitive validation on a model.

He's set up a system that allows you to add "validators" to the model to define how it should handle itself. A later call to "isValid" uses this context to see how it should be evaluated.

0 comments voice your opinion now!
validate model zendframework


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Zend Framework: Surviving The Deep End Book - Chapters 8 and 9 Published

Zend Developer Zone: Improved Test Assets for Zend_Tool Generated Projects in ZF 1.11.4

php|architect Blog: The Recording for Friday's Webcast is Now Available

Zend: Zend Framework Database Access Webinar (Oct 31st, 2007)

ProDevTips.com: Zend Amf and class mapping with Flash CS3 / AS3


Community Events

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


api release introduction community unittest security language podcast extension version framework symfony laravel5 voicesoftheelephpant laravel interview library threedevsandamaybe opinion series

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