Web

How to design with php ?

Design pattern designates a recurring way of solving a programming problem; Usually via object-oriented programming, but not always. Over time, certain conceptions have become recurrent in certain situations and have been documented, named and standardized. In the web domain, the Design Pattern Model View Controller (MVC) is one of them.

The Design Pattern MVC

In a project, a software engineering approach pushes to define the architecture of an application while respecting the design pattern. The MVC architecture seeks to separate three things:
- how to access the data,
- man / machine interface: design, design,
- processing related to the trade / field of application.

The controllers are used to respond to the actions of the user. Each control is associated with a view: this view makes it possible to present the information returned to the user. The data comes from the model (business logic).

Patterns have a history and are not fixed. Thus, the MVC pattern evolved towards the MVC2. In the MVC 2 architecture, there is only one controller that receives all client requests.
The single controller becomes the exclusive entry point of the application. It becomes very easy to centralize the management of access, rights, statistics or any other transverse functionality.

This architecture is particularly recommended in the implementation of a Web application for many reasons.
The single point of entry allows the implementation of centralized processing. Typically, access control. Rather than copy paste (and forget) a test on each page to verify that the user is identified. This test is performed once and this code is maintained in one place.

The code is also much easier to maintain

The sequence of the screens is defined by the single point of entry, a modification will be made at this place (and not by going in search of the 90 lost links in a mountain of code). If tomorrow the product is no longer to be sought in the database but in a web service, it is easy to modify only the corresponding DAO without impacting the business logic.
And if the design evolves, only the files of the view are concerned.

For more information about php programming, click here !

Develop your website

  1. 22 Mars 2022PHP Development in Montreal: What Companies are Asking For229 vues
  2. 5 Fév. 2022The History of Crypto Mining: How Long Has It Been Around?320 vues
  3. 4 Fév. 2022PHP Programming Services That Are in High Demand by Businesses299 vues
  4. 28 Déc. 202110 Reasons Why Programmers Use PHP329 vues
  5. 23 Nov. 20216 Benefits of Outsourcing Your IT to Improve Efficiency610 vues
  6. 22 Août 2021php in Montreal is constantly rising in popularity466 vues
  7. 10 Juil. 2021Our confreres of SimplyPHP465 vues
  8. 31 Mars 2021The latest about php!731 vues
  9. 20 Nov. 2020Where to find the best Php developers offshore731 vues
  10. 30 Oct. 2020Embrace projects in web development and programming734 vues
  11. 30 Sept. 2020A team of very high end Php programmers to hire807 vues
  12. 29 Août 2020The Php web development needed for your website807 vues
  13. 22 Fév. 2020Where to learn the code ??1028 vues