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 …
Continue reading “How to set action attribute in form with custom function in controller file.”