Create a ViewModel in Magento
Learn how to create a Magento ViewModel to fetch and pass post data from the database to templates.
Lesson Content
Before we can display data from the database in a template, we need to know how to generally pass data to a template. This is where the “ViewModel” part of the Model-View-ViewModel-Controller architec...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.