Creating Usable Forms With Zend Framework

Chris Hart­jes writes a very nice arti­cle about how to make (re)usable zend_forms; After search­ing around online for some exam­ples of build­ing sim­ple forms, I was dis­mayed to dis­cover there were two dif­fer­ent ways of build­ing the form. I could (a) do it the long way and cre­ate spe­cific instances of the form ele­ments using Zend_Form_Element_X or (b) do it the short way and add them to the form by use of Zend_Form::addElement() and pass it the type of form ele­ment I want via an array. For rea­sons I can­not explain ini­tially, I decided to do things the long way. Later on, I found out that doing it this way saved me from rewrit­ing.
Via: Cre­at­ing Usable Forms With Zend Frame­work.

Tags: , ,

Leave a Comment

*

Get Adobe Flash playerPlugin by wpburn.com wordpress themes