$cfgClient
The global client configuration variable, formerly known as $cfgClient, contains important configuration values for each client in CONTENIDO.
To get all the configuration values without accessing the variable in global scope you can retrieve it easly from the CONTENIDO registry class.
$cfgClient = cRegistry::getClientConfig();
The array $cfgClient contains the configuration for all clients. In order to get the value of a specific client, you have to put it's client ID as index of the root level of $cfgClient. In the list the ID is marked as "ID".
General information
Variable name | Description | Available since |
---|---|---|
$cfgClient[ID]['name'] | Name of the client | 4.9.0 Beta 1 |
$cfgClient[ID]['errsite']['idcat'] | Category ID of the error page. (was $errsite_idcat[ID]) | 4.9.0 Beta 1 |
$cfgClient[ID]['errsite']['idart'] | Article ID of the error page. (was $errsite_idart[ID]) | 4.9.0 Beta 1 |
Paths
Variable name | Description | Example | Available since |
---|---|---|---|
$cfgClient[ID]['path']['frontend'] | Path to the client directory | /var/www/example.com/ | ? |
$cfgClient[ID]['upload'] | Path to the upload directory | upload/ | ? |
$cfgClient[ID]['upl']['frontendpath'] | Alias to $cfgClient[ID]['upload'] | upload/ | ? |
$cfgClient[ID]['upl']['path'] | Full path to the upload directory | /var/www/example.com/upload/ | ? |
$cfgClient[ID]['cache']['frontendpath'] | Path to the cache directory | cache/ | 4.9.0 Beta 1 |
$cfgClient[ID]['cache']['path'] | Full path to the cache directory | /var/www/example.com/cache/ | 4.9.0 Beta 1 |
$cfgClient[ID]['code']['frontendpath'] | Path to the code directory | cache/code/ | 4.9.0 Beta 1 |
$cfgClient[ID]['code']['path'] | Full path to the code directory | /var/www/example.com/cache/code/ | 4.9.0 Beta 1 |
$cfgClient[ID]['xml']['frontendpath'] | Path to the xml directory | xml/ | 4.9.0 Beta 1 |
$cfgClient[ID]['xml']['path'] | Full path to the xml directory | /var/www/example.com/xml/ | 4.9.0 Beta 1 |
$cfgClient[ID]['template']['frontendpath'] | Path to the templates directory | templates/ | 4.9.0 Beta 1 |
$cfgClient[ID]['template']['path'] | Full path to the templates directory | /var/www/example.com/templates/ | 4.9.0 Beta 1 |
$cfgClient[ID]['tpl']['path'] | Alias to $cfgClient[ID]['template']['path'] | /var/www/example.com/templates/ | ? |
$cfgClient[ID]['module']['frontendpath'] | Path to the modules directory | data/modules/ | 4.9.0 Beta 1 |
$cfgClient[ID]['module']['path'] | Full path to the modules directory | /var/www/example.com/data/modules/ | 4.9.0 Beta 1 |
$cfgClient[ID]['config']['frontendpath'] | Path to the config directory | data/config/ | 4.9.0 Beta 1 |
$cfgClient[ID]['config']['path'] | Full path to the config directory | /var/www/example.com/data/config/ | 4.9.0 Beta 1 |
$cfgClient[ID]['layout']['frontendpath'] | Path to the layouts directory | data/layouts/ | 4.9.0 Beta 1 |
$cfgClient[ID]['layout']['path'] | Full path to the layouts directory | /var/www/example.com/data/layouts/ | 4.9.0 Beta 1 |
$cfgClient[ID]['log']['frontendpath'] | Path to the logs directory | data/logs/ | 4.9.0 Beta 1 |
$cfgClient[ID]['log']['path'] | Full path to the logs directory | /var/www/example.com/data/logs/ | 4.9.0 Beta 1 |
$cfgClient[ID]['version']['frontendpath'] | Path to the version directory | data/version/ | 4.9.0 Beta 1 |
$cfgClient[ID]['version']['path'] | Full path to the version directory | /var/www/example.com/data/version | 4.9.0 Beta 1 |
$cfgClient[ID]['css']['path'] | Full path to the css directory | /var/www/example.com/css/ | ? |
$cfgClient[ID]['js']['path'] | Full path to the js directory | /var/www/example.com/js/ | ? |
$cfgClient[ID]['data']['path'] | Full path to the data directory | /var/www/example.com/data/ | 4.9.0 Beta 1 |
URLs
Variable name | Description | Example | Available since |
---|---|---|---|
$cfgClient[ID]['path']['htmlpath'] | Full client URL | http://www.example.com/ | ? |
$cfgClient[ID]['htmlpath']['frontend'] | Alias to $cfgClient[ID]['path']['htmlpath'] | http://www.example.com/ | ? |
$cfgClient[ID]['images'] | URL to the images directory | http://www.example.com/images/ | ? |
$cfgClient[ID]['upl']['htmlpath'] | URL to the upload directory | http://www.example.com/upload/ | ? |