I
I
ivanitch2017-04-05 10:06:06
Yii
ivanitch, 2017-04-05 10:06:06

How to generate URL for nested categories in Yii2?

Hello!
Please help with Url generation for nested categories.
To be like this:
site.com/shop/computers/printers/lasers/laser-best - product co slug - laser-best
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mitaichik, 2017-04-05
@mitaichik

It seems that you can’t do this with a standard tool, you need to write your own UrlRule where to sew up this logic. Here is the documentation: https://github.com/yiisoft/yii2/blob/master/docs/g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question