Directory Structure
Apparin has four directions at its root, each with a specific purpose. Some key points are important to keep in mind during the coding.
apprain
The folder contains the core files of the framework, which are invoked from the development environment. Two major types are modules and database drivers. Modules are library files that are inherited by the user helper, and database drivers manage generic functions to execute specific commands. More over, the colder carry all core functions that manage the system functionally.
development
Most of the base development is always done here, and the major functionalities of CMS are already in this section. One of the most important factors is that accessing any core resource from the directory does not require registering explicitly.
component
The directory contains all user-defined components here. Components help to do the development smartly. It requires that you register any core functionality and then invoke it externally. Each component performs like an individual, tiny framework and interacts with the base development section. The major advantage is that each component is installable in other projects.
webroot
Functionally, Webroot is pretty straight-forward. It keeps most of the external resources that are publicly available. Generally, below are the common types of resources managed here.
- Addons: resources from third-party plugins.
- componentroot: resource required for any components.
- Themeroot: resource needed for any theme.
- File Manager: Resources uploaded by users.
A generic structure of the system is given below.