News Feed
Sections




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

DevShed:
Centralizing the Validation of Data with the Observer Pattern in PHP
July 31, 2006 @ 09:15:19

DevShed wraps up its look at the Observer pattern in PHP with this last part of the series - centralizing the data validation of your PHP5 application using the Observer pattern.

Well, over the course of this last tutorial, I'll be moving the application of observer objects toward the real world, in this case by showing you how to include these objects within a set of form-validation classes. After reading this article, you should be equipped with a decent knowledge of how a form checking application can use the powerful features of this widely-known design pattern.

They look back first at the code for the form validation class from the previous article before moving on and building in more functionality - a FormObserver class. Finally, they pair the two classes to make a working, validating example.

0 comments voice your opinion now!
validation centrailize data observer pattern form class validation centrailize data observer pattern form class


blog comments powered by Disqus

Similar Posts

The Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email Validation

DevShed: Utilizing the LIMIT Clause with the Active Record Pattern

Daniel Krook\'s Blog: Public draft - Developing PHP Applications for IBM Data Servers

Sebastian Bergmann's Blog: Data Providers in PHPUnit 3.2

Master Zend Framework: Create a Simple File Upload Form in Zend Framework 2


Community Events





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


podcast symfony series composer interview opinion laravel introduction conference framework release community library version security artisanfiles language list voicesoftheelephpant tool

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