Development

ref/DirWeb

You must first sign up to be able to contribute.

web

This is the top-level web directory that must be visible to the web server. It generally contains only resources (images, css, javascript). The executable php does not exist under this directory and need not be visible on the server.

It also contains the front controllers for each combination of application and available environment. Also, it will contain symbolic links to the resources of plugins that have been installed.

Locations

/<projname>/web

Contents

Contains common sub directories by convention: css, images, js?. It can contain anything, however you like to organize your website. Subdirectories can be added at will as desired.

Examples

listing from Jobeet:

> ls -l web
-rw-r--r--   1 user  staff   235 Jan  5 15:17 backend.php
-rw-r--r--   1 user  staff   594 Jan  5 15:17 backend_dev.php
drwxr-xr-x   8 user  staff   272 Jan  7 14:06 css
-rw-r--r--@  1 user  staff  1406 Dec 15 09:58 favicon.ico
-rw-r--r--   1 user  staff   595 Dec  4 16:23 frontend_dev.php
drwxr-xr-x  14 user  staff   476 Dec 15 10:21 images
-rw-r--r--   1 user  staff   236 Dec  4 16:23 index.php
drwxr-xr-x   3 user  staff   102 Dec  8 16:51 js
-rw-r--r--   1 user  staff    26 Dec  4 16:23 robots.txt
lrwxr-xr-x   1 user  staff    54 Jan  5 16:28 sfDoctrinePlugin -> ../lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/web
lrwxr-xr-x   1 user  staff    52 Jan  5 16:28 sfPropelPlugin -> ../lib/vendor/symfony/lib/plugins/sfPropelPlugin/web
lrwxr-xr-x   1 user  staff    57 Jan  5 16:28 sfProtoculousPlugin -> ../lib/vendor/symfony/lib/plugins/sfProtoculousPlugin/web
drwxrwxrwx   4 user  staff   136 Dec  8 16:51 uploads

References