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

Getting Cjax 5.8/5.9 to work on CI 3.x

$
0
0
If you were using CI 2.x and Cjax 5.8  your Cjax installation probably broke or you found out it does not work.

As you probably already know, Cjax is compatible with the 2.x CI family. CI 3.x does not work out of the box with Cjax 5.8 (the latest version for CI).

Here is how you can get Cjax to work on CI 3.x

Note: If you use CI 3.x and not Cjax, see at the bottom on this post (see here what you can do with it http://cjax.sourceforge.net/examples/).

Upgrade Instructions:  
Download the latest Cjax from  github (https://github.com/ajaxboy/cjax)

1. Extract zip.

2. Copy cjax/ directory to your existing CI directory and only cjax/ directory nothing else, ignore the other files.

3. Open ajax.php (you should already have this file if you have Cjax 5.8),  Delete everything under line 65 (where Cjax config ends) all the way to the end of the file.

4. Open index.php and copy it, paste it inside ajax.php after line 65.


5. in ajax.php uncomment $routing['controller'] = '';  and $routing['function']    =   '';

6. Add in controller,  'AjaxController',  and in function 'main' respectively.

7. Go to yoursite.com/ajax.php?test/test and presto!.

If you encounter any issues,  be sure to post.

If you do not have Cjax 5.8 installed on your CI 3X, you can download it from here: https://sourceforge.net/projects/cjax/fi...deIgnater/,  once you download - follow steps 1 to 7.

Cjax 5.8 for codeigniter stills gets downloaded 30 - 50 times per week, so I assume there are quite of few people getting it to work. Please do report if you encounter any problem.

Viewing all articles
Browse latest Browse all 14348

Trending Articles



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