• 0

How do you organize your web development folders?


Question

I am looking to restructure my work folder and was wondering how other web developers organize their websites.

The amount of files you have just mushrooms, from the actual website folder to backups, art files, schematics, resources supplied by the client, etc.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
Project Root
|--image resources psd, images from client
|--text, doc files
|--php backups
|--system
|--application
|--public_html
    |--CSS
    |--images
    |--html
    |--js
    |--index.php

Link to comment
Share on other sites

  • 0

Typically I'll set up my projects with a skeletal structure like so:

Project Root
|--app
    |--bootstrap.php
    |--config
    |--controllers
    |--lib
    |--models
    |--views
|--bin
|--fabric
    |--config
    |--lib
|--html
    |--index.php
    |--media
        |--css
        |--images
        |--js

Link to comment
Share on other sites

  • 0

/

/client/ (docs, designs etc)

/includes/Models

/includes/Views

/includes/Controllers

/includes/Libraries (ie, 3rd party stuff/utility classes etc)

/public_html/images

/public_html/js

/public_html/css

/public_html/index.php

/public_html/.htaccess

I tend to use that as a base for most projects. I often have a couple of files in the /includes folder for configuration files and autoloader.

Link to comment
Share on other sites

  • 0

I generally go with something like this:

/
/lib/
  --js/
/style/
/images/
/source/
  --images/
  --text/

I use the source folder for all client-provided files, and research, stock images, etc. in raw format.

Link to comment
Share on other sites

  • 0

Project Root
|--image resources psd, images from client
|--text, doc files
|--php backups
|--system
|--application
|--public_html
    |--CSS
    |--images
    |--html
    |--js
    |--index.php

That's awfully close to mine :o

Link to comment
Share on other sites

  • 0

First of i have an entire (backed up) hard drive for work.

In that i have a folder dedicated to web development, the folders with client/website name in each of those i have "www", "files" and "Notes"

Link to comment
Share on other sites

  • 0

/images/

/styles/

/js/

/includes/

/includes/database/

/includes/dao/

/includes/mail/

/data/

/data/cache/

/data/mailtemplates/

/uploads/

I spose I could move uploads into data as well *ponders*. And then I just have any pages that display HTML in the root, and occasionally I'll group them into a sub folder.

What are model and views?

Link to comment
Share on other sites

  • 0

What are model and views?

Models and Views, along with Controllers, are part of the MVC architecture for application development.

The 2 cent explanation is this: models represent your data store, views are the display elements and logic that is client-facing, and controllers are the "business" logic (all the behind-the-scenes processing of data, user input etc.).

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.