Benjamin Eberlei wrote:
when you want to seperate design and programming with zend form you can remove all markup decorators from the elements and just place them with <?= $form-
element1; ?> i think (or was it <?= $form->getElement('element1'); ?>).

designers can then build the markup while the programmers just build forms that dont have markup decorators (like htmltag, label, dd/dt).

Of course the downside with that approach is that if you add a new element to your form, you have to inform the design team and ensure they add that element in.

IMO it's probably better to establish a solid structural decoration plan of your forms and try not to vary that. The developers work with it from a structural perspective and the designers work with it from a CSS/styling perspective.

If you have to change it, then do the whole "let's actually talk/share information" thing between the two teams.

I think that is a more efficient approach than the more verbose way of essentially replicating knowledge of what the form contains on both logic and view sides of the fence.

COL


--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

Reply via email to