What is the equivalent Magento2 class for the below

1) Mage_Core_Controller_Front_Action

2) Mage_Core_Block_Template

Basically for Core ?


In Magento 1 it was


And in Magento2


In Magento 1 it was


And in Magento2 frontend


And in Magento2 Admin

| improve this answer | |

For Magento 2 Frontend extend your controller with \Magento\Framework\App\Action\Action and for admin extend your class with \Magento\Backend\App\Action

For Block, extend your block class with \Magento\Framework\View\Element\Template

Hopefully this satisfy your question

| improve this answer | |

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.