My code is
<div class="row" align="left"> <?php echo CHtml::activeLabelEx($model,'LODE_TITOLO'); ?> <br /> <?php echo CHtml::activeRadioButtonList($model,'LODE_TITOLO',array(1=>'SI',2=>'NO'),array('size'=>2,'maxlength'=>2,'separator'=>' '));?> <?php echo CHtml::error($model,'LODE_TITOLO'); ?> </div>
I do not understand why if I use the activeRadioButtonList problems to enter the value in the db ... if not ... a activeTextField data is entered correctly ..
<div class="row" align="left"> <?php echo CHtml::activeLabelEx($model,'LODE_TITOLO'); ?> <br /> <?php echo CHtml::activeTextField($model,'LODE_TITOLO');?> <?php echo CHtml::error($model,'LODE_TITOLO'); ?> </div>
This code work correctly..