found it, actions were namespaced not in Global but in Ext.app, now works.
Printable View
found it, actions were namespaced not in Global but in Ext.app, now works.
Hi All,
It appears to me that ($this->session->set_userdata(array('ext-direct-state' => $this->extdapi->getState()));)
direct.php
Is overwriting whatever you have stored in the CI session earlier, thus making it impossible to use the CI session for anything else than ext direct.PHP Code:function api($output = true) {
$this->extdapi->setRouterUrl('/direct/router'); // default
$this->extdapi->setCacheProvider($this->extdcacheprovider);
$this->extdapi->setNamespace('Ext.rpc');
$this->extdapi->setDescriptor('Ext.rpc.REMOTING_API');
$this->extdapi->setDefaults(array(
'autoInclude' => true,
'basePath' => 'controllers'
));
$this->extdapi->add(
array(
'Applicants'
)
);
if ($output)
$this->extdapi->output();
$this->session->set_userdata(array('ext-direct-state' => $this->extdapi->getState()));
}
I have some issues making user authorization work.. after the first ajax call the session does not contain my userdata anymore..
Anybody else having some issue like this??
Thanks
P.S. This code doesn't work on Windows platform, because of backslashes in win paths.. something should be updated..
How can i make it working in window platform, please mention specificly where backslashes should be removed or should be edited. I have done everything with this attached code, i saw the api is woking but when i call the function
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API); Time.get(function(provider, response) {
Ext.Msg.alert('response', response.result);
});
it returns "Time is not defined".
Can anyone give me the complete solution.
What is Ext.mits ?
post very in or
This was bugging me for quite some time... it was messing up form uploads...
file: exdtapi.php
This:
Should become:PHP Code:if (isset($state['nameAttribute'])) { $this->setFormAttribute($state['nameAttribute']); }
Not sure if you guys already fixed that.. maybe I am using old code.PHP Code:if (isset($state['nameAttribute'])) { $this->setNameAttribute($state['nameAttribute']); }
/P
Also,
consider
to serialize the data before putting in ci session to avoid the mess.
Like this:
PHP Code:$this->session->set_userdata('ext-direct-state', serialize($this->extdapi->getState()));