V
V
vitaly_742020-10-25 17:23:45
PHP
vitaly_74, 2020-10-25 17:23:45

What is better redirects or chain of responsibilities?

Good afternoon, I am writing a project in yii2. it uses the MVC pattern.
now I'm wondering:
what is better to do, a chain of responsibilities from action handlers (such a pattern). Or just redirect the request with a regular redirect to some Action. How does this fit in with the OOP?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2020-10-25
@vitaly_74

Which is better, walking or sneakers? How does this agree with the CPSU?
The question is meaningless.
If you need a redirect, then you need to do a redirect.
If you don't need a redirect, then don't do it.
All this suffering has nothing to do with OOP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question