View Single Post
Old 06-08-2017, 11:51 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by TmJones View Post
I looked at three separate scripts that I have and they have the following folders:

1) KVS - admin, blocks, contents, ftp-upload, images, js, langs, player, styles, template, temp
2) Mech Bunny TGP - admin, cache, controllers, core, csv_photos, ftp_photos, includes, media, temp_users_uploads, templates
3) Wordpress - wp-admin, wp-content, wp-includes

A person can tell that this depends of the author of the script and it will be different between the scripts. I am not asking about something as "ftp-upload" or "csv_photos" as I understand what this is but my question would be related to what are the rules of creating something like this and if there are any rules. Or scripts have the admin folder and also the includes folder. What would be the "includes" part, as far as this? I mean I can look inside and figure it out more or less, but are there any rules of creating something like this (like software design model or something like this)? Lets say I want to write a script or scripts like these, what would be the source of information about how to divide this into folders like this. I basically dont have this knowledge at this point.
You can make the schema however you want - it just needs to be logical. There's no "rules" saying you need to use specific folder structure. We have it broken up like we so everything has a clear place, and can be segregated if need be (ie if you need to put the ftp_content directory elsewhere, but not the rest of the videos, so it needs to be separated). If I was to do it again - i'd probably organize ours slightly differently - but we leave it as is with each version because alot of people are very familiar with our script as far as modifying it and we don't want to just up and change everything.

Model View Controller(MVC) In PHP Tutorial
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote