[eluser]Fielder[/eluser]
Mirage, do you know how to pass a parameter into the extjs js script from the CI controller?
For instance, I'm loading a grid using
Code:
var dataProxy = new Ext.data.HttpProxy({
url: '../../index.php/reports/listMultistores/' + conid + '/',
method: 'POST'
});
but I need to be able to specify the 3rd segment of the URI to run a specific database query.
Any ideas?
I was putting
Code:
Ext.onReady(function() {
var conid = "<?= $ext_id; ?>;"
.
.
.
var dataProxy = new Ext.data.HttpProxy({
url: '../../index.php/reports/listMultistores/' + conid + '/',
method: 'POST'
.
.
.
});
in my js file but it's not interpreting the $ext_id param.