If you'd like to use Cjax only as an ajax response handler to MVC requests, you don't need to do anything, just direct your requests to ajax.php file by following the specifications of URL here and create controllers as specified here.
If you'd like to use the full power of Cjax including all Ajax functionality, follow these steps:
1. Include ajax.php.
You may instantiate Cjax as follows:Once you have access to the $ajax object, simply in the HEAD of the HTML page do:PHP
$ajax = ajax();
If you run into issues on this step review the specifications here:PHP
<?php echo $ajax->init(); ?>
- You are set -
That is all you need, to fully initiate Cjax. Now you may review the APIs that you can start using ASAP.
View/test and Download the demos to review code samples. Then read the rest of the docs.
That should get you started.