New Directory Layout

One of the tasks for Jaws 0.5 is to give the user the commodity to install gadgets very easy without uploading one file in gadgets, others in templates, others images in images directories. So, how can we KISS (Keep it Simple Stupid) it?.

The Layout

The next layout is one idea:

|-- admin.php
|-- data
|   |-- banners
|   |-- files
|   |-- phoo
|   `-- xml
|-- gadgets
|   `-- Banner
|       |-- Banner.php
|       |-- BannerInfo.php
|       |-- BannerModel.php
|       |-- BannerWAP.php
|       |-- BannerWebService.php
|       |-- Resources
|       |   `-- Banner.png
|       `-- Templates
|           |-- ControlPanel
|           |   `-- admin.banner.html
|           `-- banner.html
|-- images
|-- include
|-- index.php
|-- themes
`-- wsadmin.php

So, to install a gadget you only need to upload your new gadget directory to gadget’s directory. Keeping the default templates of the gadget in gadgets/newgadget/Templates, the images will be in gadgets/newgadget/Images, and so on.

But you should be asking: WTF is data?!. Well, we will use that directory to separate and keep multiple installations so each user can have their own data (that is what we are looking for). Data are: banners, phoo images, filebrowser, etc..

 
  /var/www/wiki/htdocs/data/jaws/proposals/new_directory_layout.txt · Last modified: 2007/11/02 16:27