From 1b4ab6102a3b9130901d69c033d44914bd0daceb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 12 Jul 2021 13:42:12 +0200 Subject: [PATCH] Update config.php --- conf/config.php | 85 ++++++++++++++++++++++++++----------------------- 1 file changed, 45 insertions(+), 40 deletions(-) diff --git a/conf/config.php b/conf/config.php index 3ac297f..8920e11 100644 --- a/conf/config.php +++ b/conf/config.php @@ -1,4 +1,6 @@ - array( - 'db' => array( - 'connectionString' => 'mysql:host=localhost;port=3306;dbname=__DB_NAME__;', - 'emulatePrepare' => true, - 'username' => '__DB_NAME__', - 'password' => '__DB_PWD__', - 'charset' => 'utf8mb4', - 'tablePrefix' => 'lime_', - ), - - // Uncomment the following line if you need table-based sessions - // 'session' => array ( - // 'class' => 'application.core.web.DbHttpSession', - // 'connectionID' => 'db', - // 'sessionTableName' => '{% raw %}{{sessions}}{% endraw %}', - // ), - - 'urlManager' => array( - 'urlFormat' => 'get', - 'rules' => array( - // You can add your own rules here - ), - 'showScriptName' => true, - ), - + 'components' => array( + 'db' => array( + 'connectionString' => 'mysql:host=localhost;port=3306;dbname=__DB_NAME__;', + 'emulatePrepare' => true, + 'username' => '__DB_NAME__', + 'password' => '__DB_PWD__', + 'charset' => 'utf8mb4', + 'tablePrefix' => 'lime_', ), - // Use the following config variable to set modified optional settings copied from config-defaults.php - 'config'=>array( + + // Uncomment the following lines if you need table-based sessions. + // Note: Table-based sessions are currently not supported on MSSQL server. + // 'session' => array ( + // 'class' => 'application.core.web.DbHttpSession', + // 'connectionID' => 'db', + // 'sessionTableName' => '{{sessions}}', + // ), + + 'urlManager' => array( + 'urlFormat' => 'get', + 'rules' => array( + // You can add your own rules here + ), + 'showScriptName' => true, + ), + + ), + // Use the following config variable to set modified optional settings copied from config-defaults.php + 'config'=>array( // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory // on your webspace. - // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates - 'debug'=>0, - 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 - 'enableLdap'=>true - ) + // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and put MySQL in STRICT mode and get full access to standard themes + 'debug'=>0, + 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2 + // 'force_xmlsettings_for_survey_rendering' => true, // Uncomment if you want to force the use of the XML file rather than DB (for easy theme development) + // 'use_asset_manager'=>true, // Uncomment if you want to use debug mode and asset manager at the same time + 'enableLdap'=>true + ) ); /* End of file config.php */ /* Location: ./application/config/config.php */