Answer the question
In order to leave comments, you need to log in
Which principle for nested categories is better in YII2?
Actually, the need for nested categories on the site is needed, the site is on yii2. In addition, there will also be pages with a similar url structure, i.e.:
/category1/
/category1/category2/
/page1/page2/
/page3/
So far I have a couple of options:
1. Separate categories and pages, for example, by doing pages without a slash at the end of the url, and store the urls in a separate string field. Do a search on the url field.
2. Make one common tabla urls, where to store the url and what this url is attached to. But it already leaves superfluous request at selection.
How do you implement such cases?
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