File System Layout
In earlier versions of ClearOS, the underlying API, web frontend and helper scripts were stored in different locations. That meant that each application would scatter files across the file system. With the release of version 6.0, the file system layout was improved and ClearOS Apps are now installed in one directory:
/usr/clearos/apps/app_name
Inside this directory are the following sub-directories:
Directory | Description |
---|---|
controllers | The “C” in MVC |
deploy | Install scripts, default configuration and other helper files |
htdocs | Javascript, images and other web assets |
info | Metadata |
language | Translations |
libraries | The “M” in MVC (though in ClearOS it's called a library, not a model) |
packaging | Package information |
tests | Unit tests |
views | The “V” in MVC |
CodeIgniter Differences
For those of you coming from the CodeIgniter world, the file system layout should be familiar. However, we have integrated the Modular Extensions from wiredesignz so that each application is contained in its own directory instead of throwing everything inside the “applications” directory. You can find the gory technical details on the Modular Extensions web site.