I'm using Yii-user and I want to add a Country Profile Field to the user profile.
Based on this example : http://code.google.com/p/yii-user/wiki/FieldWidget#Example_-_Country_list
I've added this line:
'profiles'=>array(self::HAS_MANY, 'Profile', 'country_id'),
to the relations array of my Country class.
and I've added the relation to Profile model.
But I don't understand how should I fill the Widget parameters field in JSON string format.
Can someone give me an example?