<?php echo $form->radioButtonListRow($profilemodel, 'gender', array('Male','Female',)); ?>
when i am retrieving its value by selecting one of the options of radiobutton.im getting value 'o' or '1'.and not 'male' or 'female'.help me...
Page 1 of 1
Radiobutton Yii
#2
Posted 20 September 2012 - 05:12 AM
It's because
is in fact
array('Male', 'Female')is in fact
Array ( [0] => Male [1] => Female )
Find more about me.... btw. Do you know your WAN IP?
#3
Posted 20 September 2012 - 08:39 AM
You need to use this array:
array('male'=>'Male','female'=>'Female')
Share this topic:
Page 1 of 1

Help













