ALite CMS 51.4
Language: 
ALite CMS

System News

Constants and language resources in modules

30.12.2019 16:40  rating: 1  author: ALite CMS 

Added the ability to declare (overlap) constants and language resources in modules.

Constants and language resources declared in modules are automatically loaded only if the module class exists. If there is no module class or you need to load the constants and language resources of the module separately, then you can use the following construction:

if (!$alc_controller->is_loaded_module('module_name')) {
    $alc_controller->module_get_resources('module_name');
}

Tags: #Modules
RSS  RSS