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',
…
);
| Methods with the same name as their class will not be constructors in a future version of PHP; Markdown_Parser has a deprecated constructor #1 include_once() called at [/var/www/diafan/data/www/diafancms.com/modules/docs/docs.model.php:499] #2 Docs_model->prepare_text( Module settings – an interface for configuring the module. The settings of all modules are stored in the table [{config}](/dokument/full-manual/developers/architecture/db/#config). To use the mod...) called at [/var/www/diafan/data/www/diafancms.com/modules/docs/docs.model.php:94] #3 Docs_model->show() called at [/var/www/diafan/data/www/diafancms.com/modules/docs/docs.php:29] #4 Docs->init() called at [/var/www/diafan/data/www/diafancms.com/includes/init.php:474] #5 Init->module() called at [/var/www/diafan/data/www/diafancms.com/includes/init.php:119] #6 Init->start() called at [/var/www/diafan/data/www/diafancms.com/index.php:62] | /var/www/diafan/data/www/diafancms.com/modules/docs/docs.model.php:499 |