2009年4月28日星期二

[fw-mvc] Zend_Form DisplayGroup & ViewScript decorator

I'm trying to use a ViewScript decorator for DisplayGroup of a
Zend_Form. The view script contains form elements wrapped in a table.

In the Form:

$this->addDisplayGroup(
array([fields]),
'[group_name]',
array( 'legend' => '[name] ')
);

$group = $this->getDisplayGroup('[group_name]');

$group ->setDecorators(array(
array('FormElements', array('viewScript' => '[view script]')),
'Fieldset'
));

It displays the group with the legend but omit the html table markup.
How could I fix it?

没有评论: