|
130.
|
|
|
Config.php variables
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:7
|
|
131.
|
|
|
Some site options cannot be set in the administration area but need to be updated directly on the server in the ``config.php`` file. In this section, you see the settings that are possible and why you might want to include them in your ``config.php`` file for your site.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:9
|
|
132.
|
|
|
Some of the config parameters have an equivalent setting in the *Administration* area. If you set a value explicitely in your ``config.php`` file, it overwrites any value entered in the administration, and the field becomes unavailable for editing.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:12
|
|
133.
|
|
|
The ``config.php`` file sits in the ``/htdocs`` directory of your site. If you want to view all possible variables and their default values, you can find them in ``/htdocs/lib/config-defaults.php``. You can overwrite any default values by placing the variable in your ``config.php`` file.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:14
|
|
134.
|
|
|
Anatomy of a config variable
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:17
|
|
135.
|
|
|
A configuration variable needs to be written in the correct syntax in order to function. In Mahara, this is done the following way: ``$cfg->variable = value;``.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:19
|
|
136.
|
|
|
.. image:: images/administration/config_variable.*
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:24
|
|
137.
|
|
|
A typical configuration variable
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:24
|
|
138.
|
|
|
**$cfg->**: Stands for 'configuration' and indicates that what follows is a configuration variable.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:26
|
|
139.
|
|
|
**variable =**: Here you see the variable that is to be set. Generally, it consists of one word, or words are joined together with underscores. The variable cannot contain any spaces.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/config_php.rst:27
|