난 다음 코드 조각 myClass는 내가 설정 변수에서 장식 , 기능에서의 CreateForm입력 유형 파일 요소에 데코레이터를 설정하는 방법은 무엇입니까?
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'))
);
,
....
$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