File and Directory Structure

Directory or file name Description
./index.php Main file. All requests go through it.
./files/ Images, CSS, JavaScript, other website files should go here.
./uploads/ Files that are created by modules (e.g. by upload) and that should be accessible from web. (This way is more efficient than passing big binary files through PHP scripts). The directory has to have write access by PHP scripts.
./system/ System directory. Should be inaccessible from web.
./system/config.inc.php Main config file. Some framework constants and global $config variable are defined in there.
./system/modules.inc.php Optional module config file. Global $modconfig variable is defined in there.
./system/engine/ CTLF engine files that start the whole system.
./system/lib/ Class and function library files that may be used in many modules. Put things like ADODB, Smarty, opensource classes into this dir.
./system/modules/ All modules are kept in this dir. For detailed explanation see: Object Loading Mechanism.
./system/pages/ HTML pages that are loaded through Site.Site->showPage().
./system/scripts/ PHP page scripts that are loaded through Site.Site->showScript().
./system/tpl/ Templates for Site.Site object and other modules.

Colors: required, optional, depends on module implementation.

!Note: directory names can be changed see ./system/config.inc.php file for details.