I am learning Joomla-Development at the Moment and try to Set up a little component.
In the backend there is a form which consists of 2 fields. Field One should be saved into table 1 - Field 2 should be saved into table 2.
Field 1 is a text-field, which should be saved into table #__mycomponent_table1, field 2 is a Textarea, which should be saved into table #__mycomponent_table_2.
Table 1 already has got a overwritten store()-method. How can I Save the data of the field into another table?
Thanks in Advance :)
You will need to override the save method in the controller - in that method you will need to save the data manually to the database.
Edit:
In your template file, add:
This will ensure that your website calls the "submit" function in the controller.