I need a help. I have three tables (admin, teacher, student) and I want to log in them from one login form. And I need also distinguish them as roles that for example student can’t go to some page as teacher. How could I do that? Thank you for help!
How can I make to find and log in the user when the user put there username and password and click on one from the radio buttons who he is? I generated three models for each table with using gii. So what and where I must write to make it work?