PHP Classes

Mezon Record Field package blog

Recommend this page to a friend!

Latest Mezon Record Field package blog posts

  All package blogs All package blogs   Mezon Record Field Mezon Record Field   Blog Mezon Record Field package blog   Post article Post article  

1. How to Implement PHP Separation of Concerns by Editing Application Data Records with Forms and Processing the Changes with a Service Object

Updated on: 2021-05-31

Posted on:

Many applications need to present forms to let users edit the stored values in databases or another type of data container.

Often this is done using database access code that performs the queries to retrieve and store the data edited by the user using Web forms.

This package provides a more flexible solution by separating the code that accesses the data container from the code that generates the HTML and processes the form data.

It takes a parameter that is a separated service object that will take care of storing and retrieving the data.

This way, developers can change the type of container where the data is stored by changing the service object to take care of that task.

This possibility will allow developers to implement solutions that process forms in one machine and handle the data storage in a separate machine, making the whole solution more scalable.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Mezon Record Field Mezon Record Field   Blog Mezon Record Field package blog   Post article Post article