B
B
bplmeddy2019-11-02 10:31:13
Yii
bplmeddy, 2019-11-02 10:31:13

How to generate beautiful links in Yii 2?

Good day.
I ask for advice on the following question: how can Yii2 implement the output of links in the form of text.
For example, at the moment the link looks like this:
aymobile.com.ua/category/1000029449
and you need to make it output something like this:
aymobile.com.ua/category/oborudovanie
There are transliterations themselves, if necessary, they can be obtained for all products / categories (while they hang in the database as a separate column).
I will be very grateful for your help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2019-11-02
@bplmeddy

This is?

T
ThunderCat, 2019-11-02
@ThunderCat

https://www.google.md/search?q=yii2+%D1%87%D0%BF%D1%83

I
ivanitch, 2019-11-26
@amurcoder

There are several ways.
The easiest way to make a slug in Yii2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question