php - Yii - How To Show Other Property Not Its ID -
i have related tables on database picture below: then, have page view file picture below: i want show username, not it's id. here code in view/file/_view.php <div class="view"> <b><?php echo chtml::encode($data->getattributelabel('id_file')); ?>:</b> <?php echo chtml::link(chtml::encode($data->id_file),array('view','id'=>$data->id_file)); ?> <br /> <b><?php echo chtml::encode($data->getattributelabel('nama_file')); ?>:</b> <?php echo chtml::encode($data->nama_file); ?> <br /> <b><?php echo chtml::encode($data->getattributelabel('deskripsi')); ?>:</b> <?php echo chtml::encode($data->deskripsi); ?> <br /> <b><?php echo chtml::encode($data->getattributelabel('id_user')); ?>:</b> <?php echo chtml::encode($data->id_user); ?> <br /> <b><?php echo cht...