What is the correct convention for making categories and subcategories in CakePHP?
Do you make two database table? Two models?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.