Video Lesson: Create a ViewModel in Magento

Create a ViewModel in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Create a ViewModel in Magento

Learn how to create reusable Magento ViewModels that provide data to templates without relying on custom block classes.


Lesson Content

Going back to this default Template block class in the Magento Framework, Magento recommends that you use ViewModels instead of custom block classes from now on. And there are good reasons for this;...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!