I am a bit new to CakePhp. I have an input that is a checkbox with a label and i would like to assign a class to the label.
Here is what I have so far:
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'),
));
the html I would like to have is something like this:
<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>
I got almost all right but i miss the class small-text for the label. Any idea on how to achieve that? thanx!