I am using <?php echo $form->radioButtonList($details,‘type’,array(‘Alpha’,‘beta’)); ?> in my view and would like to get the values such as male or female from the database.?
The values such as Alpha, Beta that show in the details module will actually be from another table "$types" which stores Alpha and beta and may be changed by administrator.
The $details module that has a foreign key relationship with $types module id.(i.e. $details does not store alpha and beta, but teh column type in details is a foreign key of the id of types table)
How would I get those values in my view