I am understanding the logic behind working in separate folders in Magento 2 and came across bundle of articles talking about same thing in different ways.

Some explain MVC logic behind it and some say it is MVVM

Meanwhile Official Website says to follow MVC architecture in extension development.

If we are following MVVM (or any other) architecture can somebody explain it by relating it with Magento 2 directory structure.


  • Did you found an answer for this? Commented Mar 20, 2019 at 9:48
  • Still Looking for satisfactory answer.
    – Ajwad Syed
    Commented Mar 20, 2019 at 14:49

4 Answers 4


Magento 2 has its own unique implementation; MVC, MVVM or HMVC, none of them are specifically followed. When you create a new module, you are following MVC or HMVC, on the frontend and especially on checkout MVVM is implemented with the strong blend of KnockoutJS and on admin side it is HMVC.

After all this, I will repeat, Magento 2 has its own implementation unique to Magento 2 and none of them are specifically followed.

There are rumors going around about KnockoutJS, it might be dropped from future releases of Magento (I am not sure though).

  • 1
    Quite satisfying one ! Thanks
    – Ajwad Syed
    Commented Apr 2, 2019 at 6:17

Magento 2 is a Model View ViewModel System and no more a design structured by MVC. The MVC model was incorporated in the previous version and seems to be quite similar to MVVM, but MVVM is a way more rich in dividing the View and Model in an application. Reference: https://weblizar.com/blog/magento-2-is-model-view-view-model-system-and-not-mvc-explained/

  • I have gone through this link and attached in question as well. Please check all hyper links and get more confuse about it :)
    – Ajwad Syed
    Commented Dec 13, 2018 at 12:24

Magento 2 — No More MVC, it’s closer to a Model, View, ViewModel (MVVM) system.

What is MVVM Syste?


Magento 2 Module-based Architecture

  • Typo Syste (I have no rights to fix it).
    – pevik
    Commented May 24, 2020 at 17:11

Magento 2 is a Model View ViewModel (MVVM) system. While being closely related to its sibling Model View Controller (MVC), an MVVM architecture provides a more robust separation between the Model and the View layers.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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