I am using Kohana but this question applies to Rails, CI, or any other MVC web development framework. Where is the best place to stick one's server side AJAX scripts?
I was planning on creating an Ajax_Controller and using a method/action per individual script.
For example, a login form on the home page index.php/home
would send an XMLHttpRequest to index.php/ajax/login
, and the edit profile form index.php/profile/edit
would send an XMLHttpRequest to index.php/ajax/editprofile
. What's the best practice?