我对CakePhp有点新鲜。 我有一个输入是一个复选框与标签,我想分配一个类到标签。将标签添加到复选框cakephp
这是我到目前为止有:
echo $this->Form->input('', array(
'type' => 'checkbox',
'label' => 'I agree to the conditions',
'separator' => '</div><div class="controls">',
'format' => array('before', 'input', 'label','between', 'after','error'),
));
我想有HTML是这样的:
<div class="control-group ">
<div class="controls">
<input type="checkbox" name="" id="" '>
<label class='small_text'> <!-- can't get this one in cake -->
I agree to the conditions
</label>
</div>
</div>
我得到了几乎所有的权利,但我错过了类small-text
为label
。任何想法如何实现?感谢名单!
谢谢大家,也为明确的解释! – mikey 2015-02-23 08:01:08