我有以下代码段, 在MyClass的,我已设置装饰变量,如何设置装饰器输入类型文件中的元素?
public $testDecorators = array(
'ViewHelper',
'Errors',
array('Description', array('escape' => false, 'tag' => '', 'placement' => 'append')),
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'itemR')),
array('Label', array('tag' => 'div', 'class' => 'itemL')
),
array('HtmlTag', array('tag' => 'div', 'class' => 'itemcontent'))
);
在功能的CreateForm,
....
$cover_image = new Zend_Form_Element_File('cover_test', array(
'label' => 'Cover Test:',
'value' => '',
'class' => 'test',
'tabindex' => '5',
'required' => false,
'filters' => array('StringTrim'),
'decorators' => $this->testDecorators,
));
....
当我使用此装饰,没有什么是显示在我的形式,如果评论说'decorators' => $this->testDecorators,
形式未来罚款默认DD标签,请帮我
谢谢非常有帮助 – mymotherland