开发者

Subcategories and Categories in CakePHP

开发者 https://www.devze.com 2023-02-14 20:48 出处:网络
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.

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

精彩评论

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