我的 forms.ini 文件中有以下代码,但它不起作用(呈现的表单仍在使用默认的 DtDd 装饰器)。
incident.elements.ticket_number.type = "text"
incident.elements.ticket_number.options.label = "Ticket Number"
incident.elements.ticket_number.options.required = true
incident.elements.ticket_number.decorators.elements.decorator = "ViewHelper"
incident.elements.ticket_number.decorators.list_item.decorator = "HtmlTag"
incident.elements.ticket_number.decorators.list_item.options.tag = "li"
incident.elements.ticket_number.decorators.label.decorator = "Label"
显示输出:
<dt id="ticket_number-label">
<label for="ticket_number" class="required">Ticket Number</label>
</dt>
<dd id="ticket_number-element">
<input type="text" name="ticket_number" id="ticket_number" value="">
</dd>
但是我希望它显示:
<li>
<label for=...>Ticket Number</label>
<input type="text" name="ticket_number" id="ticket_number" value="">
</li>
我在这里做错了什么?