These are the basics of Dotkernel, use them wisely
DotKernel is a PHP Application Framework that respects the Hierarchical Model View Controller (HMVC) structure.
To understand DotKernel, you need to know its basic notions: structure, module, dots, configuration and settings files.
-
HMVC structure
The DotKernel structure is based on HMVC. When defining the DotKernel structure, we use module and dots terminology.
-
DotKernel structure
In order to better understand the structure of Dotkernel here you will have an image that shows it more clearly
-
Module
Module is the first hierarchical level of a web application. In DotKernel, modules are admin, frontend etc.
-
Dots
We use the term dots when talking about a submodule and all its component files:MVC (*.php), configuration (*.xml) etc.
-
Model-View-Controller
MVC is a design pattern used in software engineering, especially in the field of user interface programming.
-
application.ini
The file is split in different sections, each defining an environment: production, staging and development.
-
resource.xml
The resource.xml file stores the resource settings. By resources, we mean modules, dots and other items like the session.
-
URL pattern
In DotKernel, we don’t use GET parameters in links or GET methods in forms.
-
menu.xml
menu.xml is used to display the menu for each module. Each module has one menu file.
-
dots.xml
The dots.xml file stores a part of the global settings used by the dots. This file is meant to be a bridge between multiple dots.
-
router.xml
The router.xml file stores the router settings – modules, controllers (dots) and default actions.