wassimans
wassimans

Reputation: 8682

Does Drupal comply with the MVC paradigm?

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

Answers (4)

Scott Anderson
Scott Anderson

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

marcvangend
marcvangend

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

The Surrican
The Surrican

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

Tyler Eaves
Tyler Eaves

Reputation: 13121

No, drupal is not an MVC framework at all.

Upvotes: 2

Related Questions