Welcome Guest, Not a member yet? Register   Sign In
Solution for JS, AJAX, templating for CI
#2

[eluser]Myles Wakeham[/eluser]
Not sure if there is a question here, or if you want general feedback. I do all of my AJAX requests through one central controller so that I can manage security, XSS filtering, etc. in one place. If I did that in all of my controllers, I'd probably go insane.

But it depends on your use-case for this, I guess. Mind you an incoming AJAX request is just another incoming API. What is your strategy when you have to do SOAP, or REST, etc? Do you put that code in all of your controllers as well, or route through one central gatekeeper?

Myles


Messages In This Thread
Solution for JS, AJAX, templating for CI - by El Forum - 06-15-2010, 11:46 AM
Solution for JS, AJAX, templating for CI - by El Forum - 06-16-2010, 10:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB