Hello,
I had some bad experience with code organization and script
functionality in writing my php based applications. And as the applications
get bigger in scale it gets even worse. Therefore, I am trying to build a
general schema for data flow in a php/mysql application.
What I has in mind is to design a three major units. To handle the
input, processing and data access. Plus another unit to generate the output.
What I have now is one script that resolves the operation to be done
according to the parameters send to it and the call the processing unit to
do the rest of the job. However, as I add more functionality to the system
this dispatcher script gets bigger and bigger...
1. How can I arrange my program/data flow in an efficient and easily
maintainable way?
2. And how should I implement the output generation unit to be
completely seperate from the others (I have lots of forms and outputs I have
to show the user when necessary)?
Regards,
Albert Ahtenberg
I had some bad experience with code organization and script
functionality in writing my php based applications. And as the applications
get bigger in scale it gets even worse. Therefore, I am trying to build a
general schema for data flow in a php/mysql application.
What I has in mind is to design a three major units. To handle the
input, processing and data access. Plus another unit to generate the output.
What I have now is one script that resolves the operation to be done
according to the parameters send to it and the call the processing unit to
do the rest of the job. However, as I add more functionality to the system
this dispatcher script gets bigger and bigger...
1. How can I arrange my program/data flow in an efficient and easily
maintainable way?
2. And how should I implement the output generation unit to be
completely seperate from the others (I have lots of forms and outputs I have
to show the user when necessary)?
Regards,
Albert Ahtenberg
Comment