modxcms / docs

7 stars 9 forks source link

[Edit Suggestion] Loading MODX Externally #237

Closed fonpixel closed 6 years ago

fonpixel commented 6 years ago

Page Title

Loading MODX Externally

URL

https://docs.modx.com/revolution/2.x/developing-in-modx/other-development-resources/loading-modx-externally

Issue or Suggestion

fonpixel commented 6 years ago

In a first line of the first example need to change this line require_once '/absolute/path/to/modx/config.core.php'; to this require_once '/absolute/path/to/modx/config.inc.php';

Mark-H commented 6 years ago

No, that example is correct. You're loading the config.core.php file from the root of the site to get access to the MODX_CORE_PATH and MODX_CONFIG_KEY constants, which the next require will use to get the core/config/config.inc.php file.

fonpixel commented 6 years ago

Yes, you're right! I thought, that a path to the core config. Thank you for your help!