[ERROR#1] Site settings — Documentation — DIAFAN.CMS

Site settings

Working with the file config.php is performed by connecting the "Site settings" (the file includes/config.php, class Config).

Методы

void save (array $new_values, array $languages, [string $save_demo = false]) – Сохраняет параметры сайта.

  • array $new_values: новые значения параметров сайта
  • array $languages: языки сайта
  • string $save_demo: сохранить файл конфигурации для демо-версии

Example:

Custom::inc('includes/config.php');

// enable "Development mode"
$new_values = array('MOD_DEVELOPER' => true);
$languages = array(
    array(
'id' => 1),
    array(
'id' => 2)
);
Config::save($new_values, $languages);

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( Working with the file *config.php* is performed by connecting the "Site settings" (the file *includes/config.php*, class *Config*). <insert name="show_func" module="docs...) 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