Answer the question
In order to leave comments, you need to log in
How to implement centralized processing of all requests to the site?
Give examples of a beautiful implementation of the structure of an application (in this case, a site), in which requests for all pages are processed by one main controller.
The advantages and disadvantages of this approach are also interesting.
Answer the question
In order to leave comments, you need to log in
Do you mean an application with a single entry point? Or just one controller? If the latter, then such an architecture has no advantages. If the former, then one entry point - less duplication of code during initialization, it is easier to implement routing to controllers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question