<?php echo $form->checkBox($model, 'attribute'); ?>
How can you assign string values to a checkBox instead of just having 0 and 1?
<?php echo $form->checkBox($model, 'attribute'); ?>
How can you assign string values to a checkBox instead of just having 0 and 1?
<?php echo $form->checkBox($model, 'attribute', array(
'value' => 'your_value',
)); ?>