How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?
PHP Snippet 1:
// Modx init
require_once 'config.core.php';
require_once MODX_CORE_PATH.'model/modx/modx.class.php';
$modx = new modX();
$modx->initialize('mgr');
// Run snippet
$modx->runSnippet('functions_main');
// Run your functions here