Radio Button List and Two Dimensional Array

Hi

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.

Thanks

Lux

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


print_r($model->answers[1]);exit;