A
A
arab7892015-03-16 12:14:43
Yii
arab789, 2015-03-16 12:14:43

Yii. How to organize categories correctly?

I'm just starting to get acquainted with yii, and I'm interested in the advice of experienced developers. I make a store, there are categories for different platforms of games (Win, Mac, Android, etc.), each game can be under each category, and the view for each is generated in accordance with the selected platform. Is it correct to make a separate module for each platform, so there will be no need to pass additional parameters about the platform. So that the link looks like: site.com/platform ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grechushnikov, 2015-03-16
@maxyc_webber

1. the store is Bitrix IMHO
2. directories are best done through the yii nested set extension

X
xtalen, 2015-03-16
@xom9lk

I think the approach is wrong. In my opinion, a separate module for each platform is to support 4 different applications.
Such links can be formed by configuring routes in a certain way ( www.yiiframework.com/doc-2.0/guide-runtime-routing... ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question