Answer the question
In order to leave comments, you need to log in
Working with routes in Yii2?
I deduce categories from the database, and make the CNC link an alias (just by the field in the database).
With the help of routes, I make a beautiful link:
Route: ,
The resulting type of link: mysite.ru/tkani
But why doesn't it work with the "postelnoe-bele" link, if I remove the hyphen, the link becomes normal. Tell me what's the problem? '<alias:\w+>' => 'category/view'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question