Yii zii.widgets.CDetailView [关闭]

I want to show two models attributes in Groups view file in zii.widgets.CDetailView.

My database is like this
   =========  Group ==========
   id
   name

   ========= Memebr ==========
   id
   group_id
   firstname
   lastname

I used this

<?php $this->widget('zii.widgets.CDetailView', array(
  'data'=>$model,
  'attributes'=>array(
    'id',
    'name',
    array(
      'label' => 'firstname',
      $member->getAttributeLabel('firstname'),
    ),
  ),
)
); ?>

But its not working at all. I followed this link but not got any good result. Any help and suggestions will be higly appreciable.

<?php $this->widget('zii.widgets.CDetailView', array(
  'data'=>$model,
  'attributes'=>array(
    'id',
    'name',
    array(
      'label' => 'Firstname',
      'value' => $member->firstname,
    ),

As Yii already have loaded the second model in your first model so you don't need to use render partial in the view file. Let me know if you face any error.