model view controller - How to start with the design of an OOP MVC app -


i started learn mvc, i'm trying make applicaction manage fuel, question how go defining appropiate models, , logicly breaking down parts involved, in design following:

"the app must, include tank or deposit include stock of fuel, tank should able keep track of fuel has left."

"the system must keep record of restocking , outs of tank, include entity equipment, truck or machinery loaded fuel."

"at last equipment must keep record of hour meter of , able compare usage of fuel in order obtain performance."

on technical side using zend framework 2, should contain on 1 module or make various modules , relate them.

a module should considered standalone application. keeping in mind, that's should start from.

consider typical blog module. blog must have categories , posts. since categories , posts part of 1 module , since interaction tightly coupled, wrong make categories , posts standalone modules.

so in case, equipments , fuels represent 1 particular functionality called equipment management. right way handle wrapping related belonged functionality 1 module.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -