$corePath = $modx->config['core_path'].'components/provisioner/';
$modx->addPackage('provisioner', $corePath.'model/');<?php
$basePath = dirname(dirname(dirname(dirname(__FILE__))));
require_once $basePath . '/config.core.php';
require_once MODX_CORE_PATH . 'config/' . MODX_CONFIG_KEY . '.inc.php';
require_once MODX_CONNECTORS_PATH . 'index.php';
$corePath = $modx->config['core_path'].'components/provisioner/';
$modx->addPackage('provisioner', $corePath.'model/');
$modx->handleRequest(array(
'processors_path' => $modx->getOption('core_path').'components/mycmp/processors/',
'location' => ''
));MODx.Ajax.request
Ext.Ajax.request
......,headers: {
'Powered-By': 'MODx'
,'modAuth': config.auth{"success":false,"message":"action_err_ns","total":0,"data":[],"object":[]}Ext.Ajax.request({
url: '/modx/assets/components/mycmp/connector.php',
method: 'post',
success: function(response, opts) {
alert(response.responseText);
},
failure: function(response, opts) {
alert('Fail');
},
params: {
'action': 'fetch',
'ctx': 'web'
},
headers: {
'Powered-By': 'MODx',
'modAuth': 'modx4c4ea53155f7d6.89425603'
}
});baseParams: {
action: 'administration/login'
}'url: '/modx/assets/components/mycmp/connector.php?action=fetch'
else if (empty($options['action'])) {
$this->body = $this->modx->error->failure($modx->lexicon('action_err_ns'));