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: 2021-05-31
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.
More ... Post a comment See comments (0) Trackbacks (0)
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.
More ... Post a comment See comments (0) Trackbacks (0)