Simple question…I am using an MVC structure to build my site (its fairly large, so it helps with maintenance. I am now starting to integrate a few fun AJAX functions to spruce things up for Javascript/AJAX friendly users.
Since I am so anal about organization, I wanna store my ajax PHP handlers in a way that is logical, secure, and (hopefully) separate.
How do you organize yours? Is there a best practice?
For me the best solution is to have an index.php front controller which handles both page generation and ajax requests, and than have the same files that create pages do ajax things for you, even templating and module reloading.
That simplifies everything and you have an unified structure.