I Kohana kullanıyorum ancak bu soru Raylar, CI, ya da diğer herhangi bir MVC web geliştirme çerçevesinde geçerlidir. Nerede Kişinin sunucu tarafında AJAX komut sopa iyi yerdir?
I planning bir Ajax_Controller oluşturma ve bireysel komut başına bir yöntem / eylemini kullanarak oldu.
Örneğin, ana sayfada 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 strong> bir giriş formu. En iyi uygulama nedir?