PDA

View Full Version : params bug in 3.0 rc2?



drabslab
26 Jun 2009, 7:37 AM
this works:

var storystore = new Ext.data.Store({
url: 'controller.php?cdrv=1',
reader: new Ext.data.XmlReader({
record:'Item',
id:'id'
},
[
'id',
'Title'
])

});
This does not:

var storystore = new Ext.data.Store({
url: 'controller.php',
params: {
cdrv: 1
},
reader: new Ext.data.XmlReader({
record:'Item',
id:'id'
},
[
'id',
'Title'
])

});

The serverside is php.

session_start();
$incoming = $_GET['cdrv'];

and $_POST does not work either in the version using params

Is this a bug or am i overlooking something?

gurufaction
26 Jun 2009, 8:05 AM
You should be using 'baseParams'. Why not use XMLStore?