-
Book Overview & Buying
-
Table Of Contents
PHP Team Development
By :
MVC is a widely known pattern that guides us to separate the presentation, logic, and data in an application where there is a user interface involved.
In many software applications, we need to retrieve data from a data store and display it for the user. If the user changes the data, the software application needs to store the updates in the data store. Because the flow of information is between the data store and the user interface, we are inclined to tie the data storage and the user interface together. This will reduce the amount of coding and also improve the application performance. However, this approach has some significant problems. The user interface tends to change much more frequently than the data storage system. Therefore, we should be able to change the user interface, without having to worry about the data storage.
For example, let's say that the data access logic and the presentation logic are in the same PHP script. We connect to the database, retrieve the...
Change the font size
Change margin width
Change background colour