How to Update 2 models in 1 form?

:rolleyes: Good Day

I want to know how to UPDATE 2 MODELS in a SINGLE FORM

For example I Have 2 models., USER and USER_PROFILE

USER ( user_id, username, password )

USER_PROFILE ( user_id, fullname, birthday )

This 2 MODELS are in a SINGLE FORM… I know already how to insert them at the same time ,

What i want to know is how to update them in a single form provided that when u CLICK UPDATE from USER,

it will also fetch data from USER_PROFILE and set them in the form so i can update them????

any idea??

Thanks…:D

You can pass two models to the controller and save them there.