Create an object with a factory using dependency injection in Magento
Learn Magento 2 dependency injection by creating Page objects with PageFactory in a controller.
Lesson Content
So far, we’ve just used var_dump and die to output data to the screen, but you’ll only ever really be doing this when debugging code. You’ll almost always want to instead return something like a p...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.