Radio Button List and Two Dimensional Array


I have the data for my radio button list in a two dimensional array with the values and labels. I can’t seem to figure out a way to use the values.

If I do it like this…

echo $form->radioButtonList($model,'answerIDs',$model->answers[1],array('separator'=>' ')); 

I get the correct labels but the values are just incremental numbers. I’ve tried a few variations and hacks but I can’t seem to figure out how to assign the values ($model->answers[0])

Any help would be appreciated.



make sure of what is stored in your $model->answers[1] array by: