I’ll have to leave this to the more knowledgeable folk here....
I have a JSONStore configured like so:
var dstore = new Ext.data.JsonStore({
url: Tariffs.config.connector_url
,params: {
action: 'mgr/calendar/getmonth'
,cottage: Ext.getCmp('cottages').getValue()
}
,fields: ['year', 'month', 'html']
,root: 'months'
,autoDestroy: true
});
The problem is that the getmonth.php is not executed, probably due to some issue with the way the url is formed.
The url attribute - Tariffs.config.connector_url - (checked with JS debugger in Chrome) holds:
/modx/assets/components/tariffs/connector.php
This is good, as this is my connector which dispatches to my processors.
Using the params option I expect to get to getmonth.php.
However this doesn’t work as getmonth.php is not executed, although the connector.php is executed.
How do I modify this JSONStore definition so it’s properly configured to pass the correct action url? I think I tried about everything...
As always... help is very much appreciated!