title: Best way to document AJAX + PHP code?
body: <p>I have always been for documenting code, but when it comes to AJAX + PHP, it's not always easy: the code is really spread out! Logic, data, presentation - you name it - are split and mixed between server-side and client-side code. Sometimes there's also database-side code (stored procedures, views, etc) doing part of the work.</p>
  
  <p>This challenges me to come up with an efficient way to document such code. I usually provide a list of .js files inside .php file as well as list of .php files inside .js file. I also do in-line comments and function descriptions, where I list what function is used by what file and what output is expected. I do similar tasks for database procedures. Maybe there's a better method?</p>
  
  <p>Any ideas or experiences?</p>
  
  <p>Note: This question applies to any client+server-side applications, not just Javascript+PHP.</p>