Skip to content

Instantly share code, notes, and snippets.

@zhabinka
Created January 21, 2017 14:41
Show Gist options
  • Save zhabinka/25dbe371cbd4c6fbe1e142dcc1346c10 to your computer and use it in GitHub Desktop.
Save zhabinka/25dbe371cbd4c6fbe1e142dcc1346c10 to your computer and use it in GitHub Desktop.
Замена стандартных файлов /core/config/config.inc.php
<?php
/*
define('MODX_CORE_PATH', 'c:/www/site.ru/core/');
define('MODX_CONFIG_KEY', 'config');
*/
$rootPath = $_SERVER['DOCUMENT_ROOT'];
if ($rootPath[strlen($rootPath) - 1] != '/') {
$rootPath = $rootPath . '/'; }
define('MODX_CORE_PATH', $rootPath . 'core/');
define('MODX_CONFIG_KEY', 'config');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment