Reputation: 8682
Drupal is frequently referred as a Content Management Framework, does it comply with the MVC paradigm? If it does, how Drupal implements MVC?
Thanks.
Upvotes: 35
Views: 18882
Reputation: 1371
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.
Upvotes: 7
Reputation: 5642
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.
Upvotes: 37
Reputation: 29866
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
Upvotes: 3