I want a textfield within my form to show a field of a related table.
I have tables as follows
tbl_family with field called family_name
tbl_people which is related via family_id to tbl_family
<?php echo $form->textField($model,'family_id',array('size'=>60,'maxlength'=>100, 'disabled'=>true,'style'=>'width: 130px;')); ?>
the code above will display the family_id of the People model in the box. How do I get it to display the family_name instead of family_id?