Hi all. Please tell me how to implement multiple profiles with a single table of
user? For example, the trainer profile, the user profile and so on. Login information will be taken from the table
user, and other data (surname, name, patronymic) will be taken depending on the user role. They have different data, so it will need different data.
How to make relationships and dependencies so that you can use in other relationships?


For different URLs you can use slug, configure the urlManager. The controller one, and the addresses will be different. Or different actions to do and the form's action to conditionally substitute.
A bunch of options. - Dion77 commented on June 10th 19 at 15:16