Hi all,
I have a form like this :
<div class="row">
<?php echo $form->labelEx($model,‘jnsKelamin’); ?>
<?php echo $form->radioButton($model,‘jnsKelamin’,array(‘value’=>‘Male’)) . ‘Male’; ?>
<?php echo $form->radioButton($model,‘jnsKelamin’,array(‘value’=>‘Female’)) . ‘Female’; ?>
<?php echo $form->error($model,‘jnsKelamin’); ?>
</div>
Why if I choose Male, the value = 0,
instead female value is correct = Female ?
Thanks,
Any help will be highly appreciated.