I didn’t get what are you trying to do< I can just give you some general advices:
If you have to collect some input that will not be saved on database, you can use CFormModel.
This class gives you all advantages of CActiveRecord (validation, massive assignament, attributeLabel), and allows you to work with this input in the same way of ActiveRecord.
If im in right you have multipile models one is $sets an second one is $choices ,
hire is what you have to do
fist you have to set your data as array;
for more information see this link Chtml::listdata
tested and work like a charm
$sets = CHtml::listData($sets,'nameofIDproperty','nameofValueproperty');
//you dont nead sets;
$choices=CHtml::listData($choices,'nameofIDfieldproperty','nameofValuefieldproperty');
//and now thy will be returnet as array()
//like array('1'=>'one','2'=>'two')
// now you have to make tags
$setone = array(59,58,60,70,80,81,82,83); //ids of choices
$settwo = array(1,2,3,11,12,15,16,17); //ids of choices
foreach($setone as $id=>$v){
if(array_key_exists($v,$choices)){
$dataone['label'] = $choices[$v];
$dataone['value'] = $choices[$v];
}
}
echo CHtml::radioButtonList('setone','1', $dataone);
foreach($settwo as $id=>$v){
if(array_key_exists($v,$choices)){
$datatwo['label'] = $choices[$v];
$datatwo['value'] = $choices[$v];
}
}
echo CHtml::radioButtonList('settwo','1', $datatwo);