Fetch a URL parameter with a ViewModel in Magento
Learn how to retrieve URL parameters within a ViewModel using dependency injection and request handling.
Lesson Content
Since we only want a single query being responsible for populating both of these property values, how do we implement this? Well, a function which runs once per class load that is built into PHP is th...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.