Hi 

I have created a form in the standard way using Zend_Form

$form->setMethod('post')
                 ->setAttrib('id', 'new_user')
                 ->setDecorators(array('FormElements','Form'))
........etc

To display this in the view it is as simple as 

$this->form

However I wish to just display aspects or elements of this form, is this
possible? I am aware you can use display groups identified by id, so for
example:

$this->form->my_display_group

but is it possible to just access say a drop down, text field etc?

My reasons for doing this is that the display of the form is quite
complicated and varied, so extending the decorators etc would be really
painful, as such I would just like to be able to draw my form in the view
and grab the elements as needed. Obviously I could draw the form from
scratch in the view but this seems like a real waste.

Cheers

Tom 
-- 
View this message in context: 
http://www.nabble.com/displaying-individual-elements-of-form-in-view-tp19085191p19085191.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to