Magento 2 tutorial: save data to a database table
The previous video was about button creation (we’ve created “Back” and “Save”). But we haven’t added a logic responsible for saving processing data from post form and save into the database.
We’ll show you how to create a logic that will handle the save operation. In Magento 2, when we make Magento 2 module, we have to create a controller that will process data from a form. In the video, we will create an empty PHP class that we will convert into an Action Controller.
How was it?