0
저는 Zend Framework 1.10.6의 Zend_Form을 사용하여 HTML 양식을 렌더링하고 있습니다. 이 양식 'z'에는 'a'필드가있는 하위 양식이 있습니다. 하위 폼은 주 폼에 두 번 추가됩니다. 이름은 'x'로 한 번, 'y'로 한 번입니다.Zend_Form : 하위 폼에 장식 데코레이터 ID가 중복됩니다.
다음은 Zend_Form 개체에서 렌더링 한 html입니다.
<form id="z" enctype="application/x-www-form-urlencoded" method="post" action="">
<dl class="zend_form">
<dt id="x-label"> </dt>
<dd id="x-element">
<fieldset id="fieldset-x">
<dl>
<dt id="a-label"><label for="x-a" class="required">A</label></dt>
<dd id="a-element"><input type="text" name="x[a]" id="x-a" value="" /></dd>
</dl>
</fieldset>
</dd>
<dt id="y-label"> </dt>
<dd id="y-element">
<fieldset id="fieldset-y">
<dl>
<dt id="a-label"><label for="y-a" class="optional">A</label></dt>
<dd id="a-element"><input type="text" name="y[a]" id="y-a" value="" /></dd>
</dl>
</fieldset>
</dd>
<dt id="submit-label"> </dt><dd id="submit-element"><input type="submit" name="submit" id="submit" value="Submit" /></dd>
</dl>
</form>
유일한 문제는 표준 장식 (<dt>
, <dd>
가) 중복 ID를 생성하는 지금이다. 입력 필드의 ID와 같이이 ID 앞에 하위 양식 이름과 대시가없는 이유는 무엇입니까?