Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14114

Blueimp's AJAX Chat + CodeIgniter integration

$
0
0
I have a problem with integration Blueimp's AJAX Chat in my project based on CI framework.

In root durectory of my project, I made new folder "chat" and upload inside chat files. After I edit chat /lib/custom.php and write this:

PHP Code:
define('BASEPATH'AJAX_CHAT_PATH.'../system/');
define('APPPATH'AJAX_CHAT_PATH.'../application/');
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
define('VIEWPATH'APPPATH.'views/');
require_once 
AJAX_CHAT_PATH.'../system/core/CodeIgniter.php'

When I try to go url: http://myproject.com/chat/ it redirect me on auth page.

After auth, I cant open http://myproject.com/chat/ it keep redirecting me on other controllers of my project. Here is .htaccess

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


So I think after I import this file ../system/core/CodeIgniter.php in chat, it start using route, instead to redirect.

I want open this url http://myproject.com/chat/, but can't coz CI think that it is another controller.

Viewing all articles
Browse latest Browse all 14114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>