title: Where to put PHP files for AJAX in MVC architecture?
body: <p>I'm creating site using MVC architecture and get stunned when I came to AJAX. I create simple feedback form with AJAX. When user submit it there is called PHP file that inserts given values into the database using 'database' class.</p>
  
  <p>Where to put that PHP file (so it would be somehow hierarchic)?</p>
  
  <p>I tried to put it in /models/ajax/file.php, but it seems to me stupid and, of course, 'database' class wasn't found.</p>