content:en_us:dev_framework_reference_guide_file_system_layout

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:

DirectoryDescription
controllersThe “C” in MVC
deployInstall scripts, default configuration and other helper files
htdocsJavascript, images and other web assets
infoMetadata
languageTranslations
librariesThe “M” in MVC (though in ClearOS it's called a library, not a model)
packagingPackage information
testsUnit tests
viewsThe “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.

search?q=clearos%2C%20clearos%20content%2C%20dev%2C%20framework%2C%20bigpicture%2C%20maintainer_dloper&btnI=lucky

content/en_us/dev_framework_reference_guide_file_system_layout.txt · Last modified: 2015/02/06 02:46 (external edit)