Try setting the 'PrepareElements' decorator before handing over to the
viewScript. This ensures subform elements now have the array notation. As
an example:
$this->setDecorators(
array(
'PrepareElements',
array('viewScript', array('viewScript' =>
'decorators/myviewscript.phtml'))
)
);
This is mentioned in the documentation here Zend Framework Decorators (see
Zend_Form_Decorator_PrepareElements)
Regards
Colin
mail@roccogalluzzo.com wrote:
>
> hi
>
> have build a view script for my subforms with the sintax
> "<?= $this->element->name_element ?>" for print sub form elements, now
> work but don't print the subforms with array notation...
>
> you know how to do?
>
> Thanks
>
>
--
View this message in context: http://www.nabble.com/view-script-and-subform-nested-tp22096665p22100286.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论