'data'=>$model,
'attributes'=>array(
'user_id',
'user_name',
'user_city_id', <<<<<<<<<<<<<<<<< this should be city_name
),
)); ?>
don’t know if this has got anything to do with my problem but just in case :
the protected/models/user.php :
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'cities'=> array(self::MANY_MANY, 'cities', 'city_id'),
);
}
the underlined part nwlo and nwty is the part that reffered to the class name in the relations() function in the model:
in my case :
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
[b]'nwty' [/b]=> array(self::BELONGS_TO, 'ipconetwerkentype', 'nwty_id'),
[b]'nwlo' [/b]=> array(self::BELONGS_TO, 'ipconetwerkenlocaties', 'nwlo_id'),
);
}