[eluser]Unknown[/eluser]
I have a question to apply a concept in MVC. Users need to register, but "User" has "Address" and "Telephone", which have separate tables in the DB. Spoken in Models and Controllers, which must have exactly?
I'm wondering the following:
Code:
* Controller User -> User Model
* Address Model
* Phone Model
And in the "User" Controller to make the checks address and telephone and then send the data arrays for your models.
Code:
User Controller (Address Array) -> Address Model
User Controller (Array Phone) -> Phone Model
User Controller (Array User) -> User Model
This thought is correct according to Object Orientation and the MVC Pattern?
Thank you!