My title can be confusing so I will try to explain my problem. I have made a function(saveData()) in controller file to get the data from template file and insert it into table. So I wanna ask how can I call this function when form gets submitted through action attribute.
Template file path – app/code/company_name/module/view/frontend/templates/form1.phtml
Controller file – app/code/company_name/module/Controller/Index/Form1.php
Please ask if you find this confusing.
submitted by /u/LiveAlbatross619
[link] [comments]