I am creating a website in CakePHP and I am kind of new on it. I couldn't find good resources on this matter, so there you go:
I have a three table structure for registering users: Users
, Addresses
and Contacts
. I have to build a view with info of all three tables like:
Full Name: [ ] (from Users) Shipping Address: [ ] (from Address) Mobile Phone: [ ] (from Contact) e-Mail Address: [ ] (from Contact)
What is the best way to deal with this situation. Specially for saving. Creating a new Model to represent this, that will have a save()
method itself (Maybe a sql view in the database) Create a Controller to deal with this View that bind
s or unbind
s info
I wonder still how I will handle both contacts as they will be 2 different INSERT
's
Any hint or resources I can dig of I will be glad.