P
P
Pavel Bykov2020-05-15 20:23:01
Yii
Pavel Bykov, 2020-05-15 20:23:01

How to register all routes in urlManager at once?

Hello, in Yii2, in the urlManager module, I want to register in the rules properties at once access through all routes to one controller action, how can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Bykov, 2020-05-15
@mafof

Solved the problem by overriding the UrlRules class and inserting it into the rules property of the urlManager component

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question