Jump to content

What do you store in the Web Root?


doubledee

Recommended Posts

It really depends on your applications structure. Using one of the many MVC frameworks around there is generally no need to store more than the index.php file and maybe a bootstrap of some sort.

 

You obviously still need to store assets such as Javascripts, images and css files.

Link to comment
Share on other sites

It really depends on your applications structure. Using one of the many MVC frameworks around there is generally no need to store more than the index.php file and maybe a bootstrap of some sort.

 

You obviously still need to store assets such as Javascripts, images and css files.

 

Originally, in my Web Root I had folders called things like "Articles", "Interviews", "Case Studies" which is where I would store most of the content for my website.  But since then I have moved most of that into a database.

 

However, there are some pages that are "one-offs" and so it doesn't make sense to put them in my database.

 

So I'm at a loss of where to put them, especially if they are linked to from the Home Page.

 

Right now I just put them in the Web Root (i.e. Level 1) but that makes my Web Root messy as time goes on.

 

I tried grouping things like all of the links in my Footer into a folder called "Footer", but some pages are just sorta out there on their own.  For instance, I have a page that is linked from my Home Page called "factoids.php"

 

Any ideas what to do?

 

 

Debbie

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.