M
M
makeloo2016-11-05 13:56:00
Yii
makeloo, 2016-11-05 13:56:00

How to make a multilingual Yii2 user profile?

Hello!
There is a standard User table that I almost didn’t change after installing the framework, it is used only during registration, and so on. But since I have two types of completely different users "customer" and "executor", then in the table the user made foreign keys to the corresponding worker and customer tables.
Each worker has a profile in Russian, all data is stored in the worker table. Now the task is to implement a multilingual profile. And here is the question, for each language to make a separate table? And how do you tie them all together? In table worker do foreign keys per table with each language? It seems to me that the structure will turn out to be very complex. How is all this usually implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-11-05
@webinar

there is a ready solution for multilingual:
https://github.com/OmgDef/yii2-multilingual-behavior

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question