-
19 Apr 2010 4:05 AM #21
I change some code for support compress feature. At class ExtDAPI method _print line 232 - 244.
Code:
Code:function _print($api) { $CI =& get_instance(); $CI->output->set_header('Content-Type: text/javascript'); $ret = ($this->_namespace ? 'Ext.ns(\'' . substr($this->_descriptor, 0, strrpos($this->_descriptor, '.')) . '\'); ' . $this->_descriptor: 'Ext.ns(\'Ext.app\'); ' . 'Ext.app.REMOTING_API' ); $ret = $ret.' = '; $ret = $ret.json_encode($api); $ret = $ret.';'; $CI->output->set_output($ret); }
-
23 Apr 2010 4:07 PM #22
I'm traing to make an upload using the CI Upload library and Ext Direct and it dosen't works. Could someone put me an example about this?, both parts (JS and PHP) please.
-
21 May 2010 1:23 AM #23
i reading the first post and i am new to codeigniter... What does basePath() mean? This run into an error.
A complete Sample-Code were great!
[Edit]:
base_path() is not a function. For me it must be <?=$this->config->item('base_url') .$this->config->item('index_page');?>
-
9 Jul 2010 3:42 PM #24
Session access within Direct API
Session access within Direct API
I am trying to access the user session from C.I. within the Ext.Direct API function
eg:
But C.I. tells me:Code:$perms = $this->session->userdata('perms');
Does anyone have a recipe for accessing the session?Code:Severity: Notice --> Undefined property: SponsorAPI::$session
In a controller context the session works fine, its only at this next level down that it fails.
Tx!
-
9 Jul 2010 4:11 PM #25
try this..
PHP Code:$CI = get_instance();
$CI->load->library('session');
$perms = $CI->session->userdata('perms');
-
9 Jul 2010 7:47 PM #26
That worked!
That worked!
Worked like a champ, tx!
-
26 Jul 2010 3:03 PM #27
Hmm i have read the Thread more than 2 Times, and i dont get into it, some Help would be very nice, first of all the base_path() thing did not work for me, ok i solved this with the base_url, the trouble starts now with the not reachable direct/router method.
Is there anybody who get ext direct working with ci, and could give me some help.
that would be very nice
-
26 Jul 2010 3:21 PM #28
-
26 Jul 2010 3:46 PM #29
I have Setup the the scripts in a way, i normaly do it,
If i now call my default Controller i get the errorPHP Code:<link rel="stylesheet" type="text/css" href="<?=base_url().'extJS/resources/css/ext-all.css'?>" />
<script type="text/javascript" src="<?=base_url().'extJS/adapter/ext/ext-base.js'?>"></script>
<script type="text/javascript" src="<?=base_url().'extJS/ext-all.js'?>"></script>
<script type="text/javascript" src="<?=base_url()?>index.php/direct/api"></script>
http://www.domain.tld/direct/router" 404 Error,
that seems pretty clear to me, but i dont get right into it, because it seems i am the only one with this error...
The right URL must be http://www.domain.tld/index.php/direct/router", i have done a small worakround to test the functionality of ext direct, with a htaccess file and cutting the index.php away, but i get a response , similar to this one
{"action":"Time","method":"get","data":null,"type":"rpc","tid":2}
I have tried to figure this behaviour out but now i am at a point where i can't think about this problem anymore :-P
-
26 Jul 2010 7:14 PM #30


Reply With Quote