I installed yiiadmin everything works fine, but did anybody made such thing
I have a model with user_id column and i need to show some additional information for this user_id(have model user)
I already made relations ,but how to show it. I had a draft but it’s not works correct
public function adminSearch()
{
return array(
// Data provider, by default is "search()"
/* 'dataProvider'=>$this->search(),*/
'columns'=>array(
'id',
'user_id',
'friend_id',
array(
'name'=>'username',
'value'=>'Friends::model()->findAll()->user->username',
'filter'=>'',
),
),
);
}