Welcome Guest, Not a member yet? Register   Sign In
How to use wiredesign HMVC and CJAX together ?
#1

[eluser]ankur0101[/eluser]
Hi,
I am developing an app where I am using wiredesign's HMVC i.e. https://bitbucket.org/wiredesignz/codeig...sions-hmvc

Now I want to use CJAX, how can I install it ? Do I have to create a module called response ?

I am totally confused as there is no enough documentation is given how to install CJAX in CI on their wesite.
Need help.

Thanks
#2

[eluser]Ajaxboy[/eluser]
There is knowledge that last year HMVC wasn't compatible with Cjax, but it worked just fine when tested in third party applications like bonfire (which uses HMVC ). I couldn't be sure if it is compatible with it or not at this point, since I have not used HMVC personally. But I imagine that you wouldn't need to create a module for it, instead just use regular AjaxControllers.
#3

[eluser]matyhaty[/eluser]
Hi

I wonder if you can debug this a little more...
Im like the worse case scanerio....

Codeigniter + HMVC + Application/Public files split + William Concepts Template Engine....

So, here is my setup:

All CJAX Files in the root of the public html folder.

/application
/public_html
/public_html/ajax.*
/public_html/CJAX/*.*

requiring the ajax.php is fine.

So, when doing a simple bind, its works, but fails....
$ajax = ajax();
$ajax->click("link1|link2",$ajax->call("ajax.php?home/home/bind_elements"));


The loading icon flicks up, but the inspector shows the following error:
404 - http://www.tlive.dev/home/home/ajax.php?...d_elements

Obviously it should be looking for
http://www.tlive.dev/ajax.php?home/home/bind_elements

How can this be fixed....

Also, just as a side note, should ajaxfw.php be renamed to ajax.php?
Assuming ajaxfw is for frameworks - e.g. Codeigniter? Have I missed some docs?

(Ps. I init Ajax by:
<?php $ajax = ajax(); echo $ajax->init($config['base_url']); ?>

Look forward to your thoughts....




Theme © iAndrew 2016 - Forum software by © MyBB