R
R
RavageSu2014-02-18 22:37:48
PHP
RavageSu, 2014-02-18 22:37:48

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

2 answer(s)
S
Sergey, 2014-02-18
Protko @Fesor

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.

V
Vadim, 2014-02-18
@ShVad

For example, on the basis of CodeIgniter, you can make one controller and register all pages in routes.
Are the site pages the same?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question