开发者

Subcategories and Categories in CakePHP

What is the correct convention for making categories and subcategories in CakePHP?

Do you make two database table? Two mod开发者_如何学运维els?


it depends on what you want to build in the longer run. If you want to have a one table setup, then checking out the tree behavior could be worthy. But if your requirements analysis turns out that categories and subcategories differ substantially, you are better off with a two table (and two models) setup imho.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜