Welcome Guest, Not a member yet? Register   Sign In
CJAX and CI - responses vs controllers - accessing CI goodness
#3

[eluser]Ajaxboy[/eluser]
In addition, It has been brought up before the difference between responses and controllers.

Cjax is designed to operate with Ajax controllers, for organization and other purposes. There are virtually no differences that you would notice if you run a ci controller or response. <b>Ajax Controllers also extend Codeignater so anything you use in codeigniter you can also use in Ajax Controllers</b>. Otherwise when you start developing alot of ajax functionality then you end up with tons of ajax mixed with normal controllers and other php, and controllers and it creates a messy workspace. That is what this design tries to avoid so that everything is organized and you can easily locate you ajax functionality.

However if you absolutely feel you don't need this, I imagine for whatever reason someone might want to just keep all together and messy, then you can always reverse this behavior by going into file ajax.php and on line 22, where it says "response", you may change that to "controllers", and it should route to your regular CI controllers.


Messages In This Thread
CJAX and CI - responses vs controllers - accessing CI goodness - by El Forum - 04-27-2013, 02:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB