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).

On Friday 28 November 2008 00:37:46 aSecondWill wrote:
> aSecondWill wrote:
> > Ill try and find a different way to wrap it with a div.
>
> OK, seem to be a bit cleverer this morning.
>
> informed by mats post :
> http://www.nabble.com/addDecorator-and-dijit-element-td19860515.html  mats
> post  i did this:
>
>  $dateEventEnd->addDecorator(array('analias'=>'HtmlTag'),
> array('tag'=>'div','id'=>'date_event_end_div'));
>
> previously i was trying to do this sort of thing:
>
> $dateEventEnd->setDecorators($inputDecorators);
>
> but that removes the datepicker decorators, and i wasn't quite sure how to
> add them back in manually.
>
> We have a few teams working on the same site here, and would like to  find
> a way to keep markup of forms in the control of the design / front end team
> rather than having the backed team programing them, whilst still using the
> good bits of zend_form.

-- 
Benjamin Eberlei
http://www.beberlei.de

Reply via email to