어쩌면 누군가 알고 있습니다. Zend_Form_Element_Radio를 랩핑하는 방법. 라디오 입력 전체 스택의 라벨 (입력 라벨 포함). 예를 들어 위 Wraping Labels in Zend_Form_Element_Radio
public $radioDecorators = array(
'ViewHelper',
array('Description',array('tag'=>'div','class'=>'','placement' => 'prepend')),
array('Errors',array('class'=>'error_message_show','placement' => 'prepend')),
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'element')),
array('label', array('class'=>'label_text','placement' => 'prepend')),
array(array('rows' => 'HtmlTag'), array('tag' => 'div', 'class' => 'radio')),
);
$offer_type = new Zend_Form_Element_Radio('offer_type', array(
'label' => 'Label I'd like to wrap with inputs', //Label to wrap
'required' => true,
'description' => '',
'decorators' => $this->radioDecorators,
'multioptions' => array (
'standard' => 'standard',
'premium' => 'premium',
),
));
$this->addElement($offer_type);
은 단지 몇 가지 입력 라벨의 랩으로의 제를 해결 didn를.
랩핑이란 무엇을 의미합니까? 지금 얻을 수있는 HTML의 예를 제공 할 수 있습니까? 그리고 달성하고자하는 것은 무엇입니까? – Marcin