Ajax call file or files
        Posted  
        
            by WAC0020
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by WAC0020
        
        
        
        Published on 2010-06-11T17:18:23Z
        Indexed on 
            2010/06/11
            17:22 UTC
        
        
        Read the original article
        Hit count: 544
        
I have a module setup that uses ajax calls, should I have one file for all my ajax calls or should all the calls have their own file?
Example of what I mean:
index.php ------ With the ajax calls
Should I have one file such as 'ajax.php' that has functions for update, delete, and edit. Or should I have update.php, delete.php, and edit.php?
© Stack Overflow or respective owner