Good Morning dear Programmers
I have heard lotsa different opinions about the above-mentioned pattern. Some people tell me it is very useful, others say it is simply overkill. I would like to hear your opinion about it, because I know there are lots of very skilled PHP programmers around here.
For Everyone that does not know what the MVC Pattern is, an explanation:
The MVC Pattern explained
The MVC Pattern is a Pattern meant to enable very flexible software design. It basically makes the whole application consist of three different object types: "Models", "Views" and "Controllers". There has to be a common interface for each of these types that every object of the specific type has to implement. Basically meaning the following:
EDIT: What I forgot to mention was the sense of each of the three classes. The Models are Classes that provide access to data, like userlists, news etc. pp. The Controllers are classes that provide the "functionality" of the application. They manipulate and order the data they receive from the Models. The third type of classes, the Views, create the actual output. In web applications, they would create HTML or JSON code to send to the user.
Well... any opinions are welcome
I have heard lotsa different opinions about the above-mentioned pattern. Some people tell me it is very useful, others say it is simply overkill. I would like to hear your opinion about it, because I know there are lots of very skilled PHP programmers around here.
For Everyone that does not know what the MVC Pattern is, an explanation:
The MVC Pattern explained
The MVC Pattern is a Pattern meant to enable very flexible software design. It basically makes the whole application consist of three different object types: "Models", "Views" and "Controllers". There has to be a common interface for each of these types that every object of the specific type has to implement. Basically meaning the following:
<?php
// Create interfaces. Normally, common methods would be defined here
// That every class has to implement
interface MyModel {}
interface MyView {}
interface MyController {}
class UserModel implements MyModel {}
// and so on...
?>
Well... any opinions are welcome