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:
The simplest Zend_Form decorator
April 06, 2009 @ 11:12:51

Matthew Weier O'Phinney, Zend Framework guru, has posted the simplest Zend_Form decorator hw could come up with:

I've been seeing ranting and general confusion about Zend_Form decorators (as well as the occasional praises), and thought I'd do a mini-series of blog posts showing how they work.

He creates a sample object set to illustrate what the Decorator pattern is - a LockedWindow and StandardWindow that implement a Window interface, a Person object and, as applied to a Zend_Form instance, a My_Decorator_SimpleInput decorator that adds in a new type of input field. The decorator is applied through the configuration array for the Zend_Form_Element in a "decorators" array item.

0 comments voice your opinion now!
zendform zendframework decorator pattern simple introduction


blog comments powered by Disqus

Similar Posts

Amir Saied's Blog: Book review: "Pro PHP: Patterns, Frameworks, Testing and More" by Kevin McArthur

Gary Hokin: An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1

Acquia Blog: 5 PHP Components every Drupal 8 Developer should know: Part 1 - Composer

Community News: Zend Furthers Collaborations with Adobe, IBM and Dojo

Application Development Trends: New LAMP Layer: FileMaker API for PHP?


Community Events





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


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

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