Creating Usable Forms With Zend Framework

Chris Hartjes writes a very nice article about how to make (re)usable zend_forms; After searching around online for some examples of building simple forms, I was dismayed to discover there were two different ways of building the form. I could (a) do it the long way and create specific instances of the form elements 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 element I want via an array. For reasons I cannot explain initially, I decided to do things the long way. Later on, I found out that doing it this way saved me from rewriting.
Via: Creating Usable Forms With Zend Framework.

Related posts:

  1. How to make POEdit detect source strings in Zend Framework You will notice that once you have started translating an...
  2. Tab Container Enabled Forms Nathan Gar­ling­ton wrote a nice solu­tion for Tab based forms;...
  3. Creating Custom Zend_Form Decorators Jon Leben­sold post yet another excel­lent screen cast; This lit­tle...
  4. Zend Framework + Doctrine 1 Integration Ben­jamin Eber­lei writes; Hello everyone, I com­pleted a first ver­sion...
  5. Writing Composite Zend_Form Elements Jon Leben­sold writes; This video should help you build your...

Tags: , ,

Leave a Comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes