||Building a PHP Front Controller|
|Subject:||Not really seeing the point...|
Response to: Not really seeing the point...
The main reason I end using includes is for different actions. The obvious example would be inputting data into a database.
The issue is that for each and every action we are creating a file. The better solution is of course to make a common means of creating forms and a common means of handling form data using a class. My issue is that while a class to handle all types of data input and a class for creating forms seems to be useful and the most efficient, it also becomes very confusing if you needed to change forms. You edit a large class that might be difficult to understand after a few months or years. On the other hand finding the file with the forms and database input seems very simple. Where then is the advantage in using a class for this kind of action?