Yii Framework Forum: [EXTENSION] customizing Yii-user - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] customizing Yii-user selection dependent profile fields

#1 User is offline   nekdolan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 23-March 12

Posted 23 March 2012 - 09:34 AM

I am a beginner in Yii and very short on time so I would like to ask for help.
I do have general understanding of Yii of course.

I installed the Yii-user extension and I want to customize it the following way:
When the user is registering I want to display a radio button (or drop down list) with the options *register person* and *register company* and depending on the choice different profile tables would be used.

For register person
tbl_profiles and tbl_profiles_fields
For register business
rbl_business_profiles and tbl_business_profile_fields

So when someone chooses the register business choice the fields from the business_profiles_fields would become visible instead of the ones in profiles_fields. Update operations should only work on the tables that were chosen when the user was registered.

Some hints on what files I should change and how would be much appreciated.
Thanks in advance.
0

#2 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 650
  • Joined: 30-July 09
  • Location:Colombia

Posted 23 March 2012 - 01:00 PM

Interesting idea, take a look at

  • modules/user/models/User.php
  • modules/user/models/Profile.php
  • modules/user/models/ProfileField.php
  • modules/user/views/*.php
Best wishes.




Rick

Support me on Patreon: https://www.patreon.com/yiiframework


Promover Yii Framework en Español en Patreon: https://www.patreon....yiiframework_es

YiiFramework en Español: http://yiiframework.es/ - Canal de YouTube - Facebook
Follow me: @robregonm.
0

#3 User is offline   Shekeel 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 22-August 13
  • Location:Canada

Posted 26 August 2013 - 04:52 AM

View Postrobregonm, on 23 March 2012 - 01:00 PM, said:

Interesting idea, take a look at

  • modules/user/models/User.php
  • modules/user/models/Profile.php
  • modules/user/models/ProfileField.php
  • modules/user/views/*.php
Best wishes.


I am Yii-user extension and i wanted to change my registration form changed, mean to change fields on the registration form,
http://www.yiiframew...istration-form/


Please reply @ this link,
http://www.yiiframew...istration-form/
Thanks,
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users