Jump to content


Photo

How to Override Block, Model, and Controller in Magento 2

magento magento 2 magento 2 development magento 2 tutorial magento ecommerce ecommerce magento development

  • Please log in to reply
No replies to this topic

#1 Meetanshi

Meetanshi

    Advanced Member

  • Members
  • PipPipPip
  • 535 posts

Posted 22 March 2019 - 11:30 AM

Magento 2 CMS offers flexible options to customize the default configurations. However, it is advisable to override block, model, and controller in Magento 2 than editing the core files.

 

The Magento 2 Controller is responsible for handling the incoming requests. Blocks are PHP classes used to connect or create a link between layout and templates. The Model represents the data of the application in MVC.

 

Visit https://meetanshi.com/blog/override-block-model-controller-magento-2/ for the detailed method.



looking for the best presta addons with outstanding support? check this: PrestaShop Modules