S
S
Sergey Beloventsev2016-06-14 14:43:11
Yii
Sergey Beloventsev, 2016-06-14 14:43:11

How to properly organize the UrlManager rule?

there is a rule

'/serial/category/search/<query>' => '/serial/category/search',

and with such a request, it works fine
serial/category/search/любовь
, but with such a serial / category / search / Love / Hate does not work, but the problem is that Love / Hate is the real name of the series, and such a search query can be issued

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2016-06-15
@webinar

as an option:

'/serial/category/search/<query>/<query2>/<query3>' => '/serial/category/search',

V
vyachin, 2016-06-15
@vyachin

'/serial/category/search/<query:.*>' => '/serial/category/search',

https://github.com/samdark/yii2-cookbook/blob/mast...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question