I’ve been using this code to initialize MODX in external files:
require_once MODX_CORE_PATH.'config/'.MODX_CONFIG_KEY.'.inc.php';
require_once MODX_CORE_PATH.'model/modx/modx.class.php';
// Create an instance of the MODx core
$modx = new modX();
// Initialise the core to access the default 'web' context
$modx->initialize('web');
Are there any adjustments or recommended changes for MODX 3.0?