Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 859 Bytes

form.decorators.intro.rst

File metadata and controls

18 lines (12 loc) · 859 Bytes

Introduction

Zend_Form <zend.form> utilizes the decorator pattern in order to render elements and forms. Unlike the classic decorator pattern, in which you pass an object to a wrapping class, decorators in Zend_Form implement a strategy pattern, and utilize the metadata contained in an element or form in order to create a representation of it

Don't let the terminology scare you away, however; at heart, decorators in Zend_Form are not terribly difficult, and the mini-tutorials that follow should help you along the way. They will guide you through the basics of decoration, all the way to creating decorators for composite elements.