News Feed
Sections




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

DevShed.com:
The Singleton and Factory Patterns in PHP - Building a Form Generator Class
December 08, 2005 @ 08:25:07

In the final part of their "The Singleton and Factory Patterns in PHP" series, DevShed has posted this new tutorial on the creation of a form generator class using all of the previous code.

In this final part of the series, Alejandro Gervasio examines a point that he has not taking into consideration so far: that the layout of form elements plays a relevant role within the overall development process. With this in mind, he encapsulates the logic needed to generate web forms by defining a form generator class. This class will implement the form element factory along with all of the required form element classes.

He guides you through the rest of the methods not mentioned previously in the class and puts it "to the test" with a practical example. He finishes it off with the full code for the class all in one place to make grabbing and using it a simple experience...

0 comments voice your opinion now!
singleton factory pattern form builder class singleton factory pattern form builder class


blog comments powered by Disqus

Similar Posts

Soledad Pendaes' Blog: PHP will never have a (real) Rails-like framework

Jason Gilmore's Blog: How I Learned to Stop Worrying and Love Zend_Form

Andrei Zmievski's Blog: All the Little Pieces, or TextIterator in PHP 6

The Bakery: Checking for duplicate records (unique record)

Developer.com: Forms Validation with Symfony and Prototype


Community Events





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


voicesoftheelephpant symfony version release interview language security tool opinion introduction podcast library laravel package framework community series mvc update composer

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