2

i saw this diagram which represent what i've been coding for laravel php framework. enter image description here

However, i was told by some other developers that for MVC, the model can update the View directly as shown in https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller.

Is there a sub-type of MVC or laravel is implementing a different type of MVC? I've used Laravel and codeignitor before and they both seems to work like the first diagram.

2
  • 1
    This is a fine article about MVC. Actually there are many ways to approach this architecture pattern, and it's more up to your needs and project modeling than anything (for instance, Router isn't really an 'official MVC part' [if there is any], as it acts as a general request controller, but even though that approach is still valid MVC) Commented Oct 15, 2015 at 12:24
  • 1
    Nor Laravel nor CodeIgniter implement that classical MVC. They call "modified" version of it. If you modify a view from a model (as its described in the paper), that will introduce a number of another issues for web. That's why all major frameworks don't implement it that way. Commented Oct 15, 2015 at 12:27

1 Answer 1

3

There are many variation of MVC, pattern, e.g.:

It's not just "plain" MVC known from SmallTalk, but a variation of it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.