Insert the same data in two different tables using yii2:

Hello,

Iam using yii2,having two tables inbox,sent_items.

inbox table contains fields,

mail_id (pk),from,to,subject,content,date_time.

sent_items table contains fields,

mail_id (pk),from,to,subject,content,date_time.

i need to insert values through form in two tables in same time.

answer please thanks.

Hi,

How you are posting data to controller

Form Post or Ajax ?

Its too old post.