2
dt
태그를 하나의 필드에 대해서만 zend 양식에서 제거하고 싶습니다. 제가 어떻게 할 수 있는지 알려주세요.특정 필드에 대해 zend 양식의 dt 태그를 제거하는 방법
$day = new Zend_Form_Element_Multiselect('day','day');
$day->setLabel('')
->removeDecorator('DtDdWrapper')
->setOptions(array('class' => 'width100'))
->addMultiOptions(array('Select Type' => '',))
->addMultiOptions($day_of_month);
사전에 감사 : 여기 노력이 아닌 dt
태그가 제거 점점 오전 코드입니다. 디버그 사용하려면
내가 Zend_Debug :: dump ($ day-> getDecorators())를 울 렸을 때; 내가 다음과 같은, PLZ 내가 dt 태그를 제거하기 위해 다음에 무엇을 할 수 있는지 알려줘. [Zend_Form_Decorator_Label] => 객체 (Zend_Form_Decorator_Label) # 438 (5) {[ "_placement": protected] => 문자열 (7) "준비" [ "_tag": 보호] => NULL [ "_element": 보호] => NULL [ "_options": 보호] => 배열 (1) { [ "tag"] => string (2) "dt" } [ "_separator": protected] => 문자열 (2) " " – Lakshman
$ day-> removeDecorator ('Label'); dt 데코레이터가 건물을 떠났음을 알 수 있습니다. –
그것은 일하는 친구, 고맙습니다. – Lakshman