Yii Framework Forum: Multiple Registration/Login forms? - Yii Framework Forum

Jump to content

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

Multiple Registration/Login forms? Rate Topic: ***** 1 Votes

#1 User is offline   hnprashanth 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 14-May 09
  • Location:Bangalore

Posted 05 July 2010 - 04:53 AM

I have two sets of users who will use my application. I have different fields on registrations form for them & also different roles. So, i want to have two different registration forms, like "Job seeker sign up" & "Job provider sign up" & similarly "Job seeker login", "job provider login".

I'm planning to use either Yii-user or Yii-user-management extension. But confused on how to get my requirement implemented. Does having two user tables in single application conflicts??
0

#2 User is offline   zaccaria 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 2,232
  • Joined: 04-October 09
  • Location:Moscow

Posted 05 July 2010 - 06:00 AM

You can create 3 tables:

user with username, password and other eventual common field
user_job_seeker with the data of job seekers
user_job_provider with the data of job provider

Both user_jpb_seeker and user_job_provider has a foreign key on user.

Like that you can either have a single login and redirect to different home page or, if for you is more confortable, you can create two login page.
1

#3 User is offline   hnprashanth 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 14-May 09
  • Location:Bangalore

Posted 05 July 2010 - 06:06 AM

This sounds like a perfect solution. thanks a lot.
Let me try it out :)
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