Bootstrap Checkbox

If you want update model in Bootstrap extensions designed form, value of checkBox or checkBoxRow is everytime 0 regardless on DB table value. No effect explicitly coded:


<?php echo $form->checkBoxRow($model, 'active', array('checked' => true)); ?>

You can solve this problem by adding 1 row before last row and modifying last row in activeCheckBox method of TbHtml class (bootstrap.helpers.TbHtml):




$check = self::popOption('checked', $htmlOptions,false);

return $hidden . self::checkBox($name, $check, $htmlOptions);