User.php

Hi

I’m getting back into Yii2 this weekend having last used it when it was in alpha. I just wanted to know in the basic app there is a User.php model. I have just set up my DB and i had a table called “user” so naturally in Gii it told me that the user model was different. I know there’s always lots of built in functionality and code generation with Yii. So I wanted know what the purpose of the user.php was, should I rename my user table to something else or just let Gii overwrite the User model?

Thanks

User.php IS User model. So you do not have to create User model with gii, you already have it (if you need to change something, go and change the one you got in template). You can create user CRUD with gii if you need that functionality…

Thanks