Video Lesson: Load data using a repository in Magento

Load data using a repository in Magento

Enroll to watch this lesson

Black Friday The whole University for $299/yr.

Load data using a repository in Magento

Learn how to load Magento blog post detail data using a ViewModel and PostRepository getById in templates.


Lesson Content

We’ve already written the code to fetch data out of the database within our PostRepository by creating a factory, loading a record with it using a resource model, and throwing an exception if it is ...

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!