Cakephp save data

I would like to kindly ask you about my problem:

I have created 3 database tables
Table A
Table B
Table H (History table)
I have created the connection between tables “A and B”.
I have created the view file for them (view.ctp) and
i want to save those what i see on the view file, to the Table H on database
with out changing (editing) the values.

Waiting for your feedback wish you all the best,