So I’m going through the tutorial on creating a 3PC and I’m up to the part where I have a custom manager page and just used the first bit of Ext js to add the grid that is going to be populated with doodles. (
http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution,+Part+II"" target="_blank" rel="nofollow">http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution,+Part+II)
I can’t seem to get the connector to work though. Couple things I notice:
- the tutorial states that I should see "{"success":false,"message":"Access denied.","total":0,"data":[],"object":[]}" when loading connector.php directly. Instead I see a blank page
- If I add: echo "hit"; after the first two require_once lines in connector.php it displays on the page, but if I move the echo "hit"; line after "require_once MODX_CONNECTORS_PATH.’index.php’; then it no longer displays.
- If I open up require_once MODX_CONNECTORS_PATH.’index.php’; and put a echo "hit"; line in that file it also displays, unless placed near the end after this:
if (defined('MODX_REQP') && MODX_REQP === false) {
} else if (!$modx->context->checkPolicy('load')) {
@session_write_close();
die();
}
which I assume is because I’m testing the file directly and not inside the modx context..
Help please, I can’t figure out where I’m going wrong.