0

What is the use of PageFactory and ResultPageFactory in Magento? Major difference between both and for what both are used for

2

There is only \Magento\Framework\View\Result\PageFactory class

ResultPageFactory is used like alias in m2

use Magento\Framework\View\Result\PageFactory as ResultPageFactory

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.