Open
Description
Feature request
Summary
After installing MODX, a config.core.php
file is created in the folders: /
, connectors/
, core/
and manager/
with the paths of the server folders, for example in /
:
<?php
/*
* This file is managed by the installation process. Any modifications to it may get overwritten.
* Add customizations to the $config_options array in `core/config/config.inc.php`.
*
*/
define('MODX_CORE_PATH', '/home/a/account/folder/public_html/core/');
define('MODX_CONFIG_KEY', 'config');
But why not use the __DIR__
and __FILE__
constants when generating these paths?
Then the config.core.php
file in /
would look like this:
<?php
/*
* This file is managed by the installation process. Any modifications to it may get overwritten.
* Add customizations to the $config_options array in `core/config/config.inc.php`.
*
*/
define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
define('MODX_CONFIG_KEY', 'config');
Why is it needed?
When you move a site to another server, there will be less editing and fewer possible bugs.