The question is about the concept of a single entry point in a web application: should ajax requests also be sent to this point, or should they be processed separately? What additional difficulties may arise in the future if we process them separately? And the second question: if you write this single entry point using OOP tools, is it advisable to move towards static f-th and hammer on objects? (Of course, not always).

  • one
    What are you interested in? With familiarity was? And how, for example, should Ajax requests be processed separately from a single entry point into an application? - white-imp

1 answer 1

IMHO:

1) A single entry point is a mechanism that has already proven its practicality.

2) As for the question about objects and static functions. I did not fully understand him ... Actually, this is all described in MVC. In any framework there is a routing that matches the request with one or another controller. And all this means objects.

3) AJAX requests should also be processed through a single entry point, since these are all parts of one system.