D
D
Doniyor Mamatkulov2016-08-27 13:22:46
Yii
Doniyor Mamatkulov, 2016-08-27 13:22:46

CNC links in Yii2?

Friends, have a nice Saturday! I can't find any articles on the topic of forming human-readable URLs in Yii2. But not those that just have the .html suffix at the end, but the actual path in transliterated form. Something like this: somesite.ru/nedvyzhimost/odnokomnatnye-kvartiry/v-... when the user goes through the menu items Real Estate> One-room apartments> For rent. In short, how to make these very CNC links?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2016-08-27
@doniyorbekm

Good afternoon.
Surely it will help you https://github.com/yiisoft/yii2/blob/master/docs/g...
ps "Real estate> One-room apartments> For rent." Did you mean "bread crumbs"?

Z
Zhandos M, 2016-08-27
@Zhandos

You google extensions or libraries for transliterating NOT Latin into new. Then you store aliases somewhere in the database, make a UrlRule rule and look for alias from the link in the database. Easy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question