lundi 22 août 2016

class methods, or functions better for page organization in php?

Could someone provide me a list of options and their pros and cons for organizing pages in a web application? For example, each page could be in a function: partyView() partyController() etc Or they could be grouped into classes Party::view() Party::controller() I just find that in a class the php files become very long. So what are the pros and cons to different code organization patterns in terms of dependency management and organizing code bulk. Thank you. Also, I've used static classes in this example. If you think this is good/bad, please leave pros and cons for this as well.

Addendum: If you do not like the question, please explain how I could improve it.

Aucun commentaire:

Enregistrer un commentaire