Welcome to the Treehouse Community
Looking to learn something new?
Structure of Projects
Hey Guys, so to learn im doing some little Projects in php right now.
What im mostly struggling with is how to structure the project.
I have seen so many different versions.
Some People seem to just use classes for everything, others use a strict Model/View/Controller Structure.
Everytime i read Sourcecodes on websites the whole project seems to have a different structure and i dont understad whats right and best practice right now.
To keep to question simple, what folders should a typical project have? for example:
index.php /model/ /view/ /controller/
index.php /classes/ /inc/ config/
or something else?
Jonathan GrieveTreehouse Moderator 91,028 Points
Generally when traches structure a format for project files it's a recommended workflow but within reason you can go with your own workflow, what ever you think works best or makes you comfortable. :)
Hey Jonathan, thanks for your replay. But I dont really understand what you mean by traches structure. What is this?