Search code examples
phpyiiradiobuttonlist

passing values from radiobutton?


I have a radiobutton list in yii php,but I don't know how to access the value from this it doesn't contain any name or identity

<?php
echo $form->radioButtonList($model,'priority', 
                        array('C'=>'CRITICAL','H'=>'HIGH','L'=>'LOW')
 array('separator'=>'')); 
?>

Please help me to sort out this. thanks


Solution

  • you need to do this to see the value
    <?php echo $form->error($model, 'priority'); ?>
    For your help