Running this:
‘http://localhost/test/ajax.php?sample/test/1/2/3’
from this code:
class controller_sample extends CI_Controller {
function test($a,$b,$c)
{
//$c = new Country(); // This line from DataMapper is giving troubles with CJAX
$ajax = ajax();
die('ajax:<pre>'.print_r($ajax,1).'<pre>');
$ajax->update('content', "Esto es AJAX");
}
}gives this output:
ajax:
CJAX_FRAMEWORK Object
(
[config] => ext Object
(
[settings] =>
)
[strict] =>
[message_id] =>
[trace] => 0
[xmlObjects:CoreEvents:private] =>
[lastCmd] =>
[selector] =>
[loading] =>
[fallback] =>
[post] => Array
(
)
[dir] =>
[attach_event] => 1
[log] =>
[session_id] =>
[port] => 80
[controller_dir] =>
[format] => cjaxFormat Object
(
)
[caching] =>
[crc32] =>
[event] => onClick
[text] =>
[debug] =>
[version] => 5.0-RC3
[is_init] =>
[method] =>
[_path] =>
[jsdir:CoreEvents:private] => cjax/core/js/
[caller] =>
[_flag] =>
[_flag_count] => 0
)