controller
-
January 11, 2023
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?
-
August 16, 2022
From the Template and Layout Rendering lesson, we've learned how to create a new template and render it on a custom page with the help of a layout. As you've noticed, the template provides HTML markup with static text.
<h1>My First Template</h1> <p>With Layout support</p>
This code might be enough for a static website, but not for Magento 2. In this lesson, we will learn how to pass data from the PHP side, specifically from an Action Controller to the template.
By the end of this lesson, you will know one of the ways how to render dynamic content on a page.
Lesson Overview