File system

Directory structure

Software has the following directory structure:

application
All software related functionality and plugins are located in this folder. This is where you would place your files if you would like to create new features or customize the software.

assets
Javascript and CSS files.

externals
Third party scripts used by the software.

system
All core functionality and framework files are located in this folder. Do not modify any files in this folder.

templates
Software templates.

uploads
User uploaded files.

Cascading file system

File system in the framework is a hierarchy of similar directory structures that cascade in the following order:

  • Application path - files located in the "application" directory.
  • System path - files located in the "system" directory.

Whenever file is loaded, system first looks for it in the "application" directory and if it's not found it looks for it in the "system" directory. This makes it is possible to overload any system file by placing a file with the same name in the "application" directory.

For example if you would like to extend the default "session" class that is located in the "system/core" folder, you would create a file called "session.php" in the "application/core" folder.