我有CakePHP的形式产生AA单群复选框勘定风格/类复选框的标签在CakePHP
echo $form->input('Interest.interest_id', array('label' => __l('Interests'), 'multiple' => 'checkbox'));
有一个称为兴趣主要标签,然后为每个复选框标签产生的,我该如何申请一个独立的类风格的复选框的标签?
代码片段
<label for="InterestInterestId">Interests</label>
<input type="hidden" value="" name="data[Interest][interest_id]">
<div class="checkbox">
<input id="InterestInterestId8" type="checkbox" value="8" name="data[Interest][interest_id][]">
<label for="InterestInterestId8">Label of Checkbox</label>
</div>
我的主要目标是让复选框显示标签的很好内嵌盈,但由于其他造型它却没有出现这样的违约
你可以包括HTML对于这两种标签的片段? –
@Allen - 我已经添加了一个片段 – Roland