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.