8
Answers

Passing information from view to different models

Schleid Alex

Schleid Alex

5y
525
1
Hi,
 
I need show a registration form where information will be taken from two tables, users and address. Information from these two tables should be presented to the user in one view, I have some idea on how to do that just looking for the best way.
1) I can have a class that contain information from those two tables and pass it to the controller then to the view
is this the best way?
2) Now the user has filled the form I need to post it back to those two tables
 
Thanks for your help
 
Schleid
Answers (8)