我的代码是:
echo $this->Form->control('select', [
'label' => 'sample label text',
'type' => 'select',
'multiple' => true,
'value' => [1,2],
'options' => ['a','b']
]);
现在的输出是:
<label class="control-label" for="select">sample label text</label>
<input type="hidden" name="select" value="">
<select name="select[]" multiple="multiple" id="select" class="form-control">
<option value="0">a</option>
<option value="1">b</option>
</select>
我应该如何更改代码以在标签和选择之间添加跨度?