Module is the first hierarchical level of a web application. In DotKernel, modules are admin, frontend…
As you may have noticed, underlined red folders have the module name. When creating a new module, a new folder with the module name must be created in each of the following folders:
-
-
-
- configs,
- controllers,
- DotKernel,
- images,
- templates,
- templates/css,
- templates/js.
-
-
Each module is composed of multiple dots. We use the term dots when talking about a submodule and all its component files: MVC (*.php), configuration (*.xml), template (*.tpl), javascript (*.js) … For example, “user” is a dots for the frontend module.
The DotKernel structure is a dots hierarchy:
- dots php files respect MVC pattern
- each module is composed of multiple dots