Does Drupal comply with the MVC paradigm?

17,370

Solution 1

No, Drupal follows the PAC (Presentation-Abstraction-Control) model rather than MVC. There is an excellent blog post explaining this at Larry Garfield's site.

Solution 2

Drupal 8 now incorporates Symfony components. So this means while a Drupal 8 application is not an MVC framework/CMS as a whole, Drupal 8 modules are implemented in an MVC pattern with controllers, routes and Twig templates for Views.

Solution 3

No it does not. You can however develop software using mvc architecture and there are even modules to facilitate that, but the system it self does not. maby it will in the future.

but some fundamental concepts of drupal, like the hooks, are conflicting with the mvc paradigm

Solution 4

No, drupal is not an MVC framework at all.

Share:
17,370
wassimans
Author by

wassimans

BY DAY: Software engineer at Mobioos. BY NIGHT: Family time, but occasionally same as 'BY DAY' FOR FUN: Running, books, climbing mountains. Favorite quote: "We are the product of our life decisions"

Updated on June 02, 2022

Comments

  • wassimans
    wassimans almost 2 years

    Drupal is frequently referred as a Content Management Framework, does it comply with the MVC paradigm? If it does, how Drupal implements MVC?

    Thanks.