Module settings

Module settings – an interface for configuring the module.

The settings of all modules are stored in the table {config}.

To use the module settings in the formation pages in the public or administration parts, there is function configmodules.

Example:

if($this->diafan->configmodules("field", "module_name") == "value")
{
    
//action
}

The module settings file – modules/module_name/admin/module_name.admin.config.php. The file is based on the same principle as any part of the administrative file of the module.

In order to understand the system that the file – settings module, you need to specify:

public $config = array (
    
'config',
    

);

Sections of the site

If the module is attached to a number of pages of a site, then your settings for the module can be set for each page.

It provides the following entry in the class module settings:

public $config = array (
    
'element_site',
    

);