echo $this->Form->input('name_group', array('multiple' => 'checkbox', 'options' => $val,'label' => false,'class' => 'col-lg-4 col-md-4 col-sm-4 col-xs-6 custom_no_padding custom_checkbox','selected' => $selected));
并希望输出如下:
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-6 custom_no_padding custom_checkbox">
<input type="checkbox">
<label><a href="test1">Value1</label>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-6 custom_no_padding custom_checkbox">
<input type="checkbox"><label><a href="test2">Value2</label>
</div>