Video Lesson: Exercise: Create a new function within a ViewModel in Magento

Enroll to watch this lesson

Black Friday The whole University for $299/yr.

Exercise: Create a new function within a ViewModel in Magento

Learn how to create a custom ViewModel function in Magento to dynamically display blog post count.


Lesson Content

The idea of ViewModels is to extrapolate all of the logic out of the template. The template is responsible for the presentation of data, not anything else.

Update the hard-coded post count, but ins...

Premium content

Enroll to unlock the full content and all course materials.

Black Friday

The whole University for $299/yr.

Get the deal →
Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Black Friday

The whole University for $299/yr.

Every course, Maggie & Campus. The lowest price ever.

Get the deal →
Comments

Join the discussion!

Notes

Keep track of what you learn!