I dont know how to use Xajax Comet plugin on CI

#1
[eluser]gurthgor[/eluser]
My controller is :

Code:
$partes_ruta = explode("index.php",$_SERVER['SCRIPT_NAME']);
        
        // XAJAX
        require_once($partes_ruta[0].'system/application/libraries/xajax/xajax_plugins/response/comet/comet.inc.php');  
        $this->load->library('xajax/xajax_core/Xajax');
        $this->xajax->registerFunction(array("empezarchat", &$this, "empezarchat"));
        $this->xajax->registerFunction(array("metermensaje", &$this, "metermensaje"));
        $this->xajax->processRequest();
        
        $datos['xajax_js'] = $this->xajax->getJavascript($partes_ruta[0].'system/application/libraries/xajax/');
        $this->load->view('vistachat', $datos);

I receive the following error :

A PHP Error was encountered

Severity: Warning

Message: chat::require_once(/sigeCI/CodeIgniter_1.6.3/system/application/libraries/xajax/xajax_plugins/response/comet/comet.inc.php) [function.chat-require-once]: failed to open stream: No such file or directory

Filename: controllers/chat.php

Line Number: 10


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.