Add Template to Layout in Magento 2
Add Template to Layout in Magento 2
Magento 2 allows to link a PHTML template to a custom page via layout configuration. In this video, we will learn how to do this.
Check my online course Payment Integration in Magento 2:
Subscribe to my channel for more videos!
—
Connect with me over the social channels:
Twitter:
Website:
Instagram:
Medium:
Facebook:
Business Enquiries:
See more here
Good! but How we can send data from the controller to the template? or in this case, create a global message in the controller and catch it in the template.