A
A
Anton2016-07-17 01:55:28
Yii
Anton, 2016-07-17 01:55:28

How to design an application?

Hello. I am making applications for job search and employees in yii, it turns out that the application is divided into two parts into the employee module and the employer module, the question arises how best to design the user login registration and personal account, in fact, the possibilities are similar and the functionality is different for each type of user, I came to the conclusion that for the employee and the employer it is necessary to write the registration entry and the personal account separately to do this or is there a better solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-07-17
@webinar

In the user's database, we add the type field; we store 1,2,15, etc. there. That is, we send users with type 1 to 1 account, with type 2 to another.
Further, how different everything is, it can be different modules, different actions or controllers, or generally different apps on different subdomains. See for yourself here.
If there are fields for the database that are different from each other. We make separate tables for each type. And the connections in the user model + the getData method that will return the data depending on the type of user pulling this or that connection.
Forms of registration in this case will be different naturally. And each of them will have its own model.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question