When a checkbox it's created via php, example:
// Remember
$remember = new Check('remember', array(
'value' => 'yes'
));
$remember->setLabel('Remember me');
$this->add($remember);
then html generated is:
<input id="remember" type="checkbox" value="yes" name="remember">
<label for="remember">remember</label>
How to generate an html structure like:
<label class="checkbox" for="remember">
<input type="checkbox" value="" id="remember" data-toggle="checkbox">
Checkbox
</label>
Thanks!!