Answer the question
In order to leave comments, you need to log in
Yii2 - translate product names into url?
Hello!
I searched a lot of places for information on the transliteration of the product name and its substitution in the product URL, but did not find it. Maybe there is some literature in Russian?
All that we managed to find is the CNC url and that's it, then it feels like no one needs it and it will be enough if the product url contains only its id
Help with the search!
Answer the question
In order to leave comments, you need to log in
Options:
\yii\helpers\Inflector::slug('product name',' '-');
//name-product
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question