-
24 Aug 2011 11:45 PM #41
found it, actions were namespaced not in Global but in Ext.app, now works.
-
17 Mar 2012 3:08 PM #42
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
-
12 Jun 2012 2:27 AM #43
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.Last edited by anwar31dec; 12 Jun 2012 at 2:41 AM. Reason: writing not completed
-
24 Nov 2012 4:05 AM #44
-
26 Nov 2012 6:56 PM #45
Ext.Direct for CodeIgniter
Ext.Direct for CodeIgniter
post very in or
-
9 Feb 2013 4:56 PM #46
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
-
9 Feb 2013 5:03 PM #47
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()));


Reply With Quote