Thank you for your help! I’m still learning how to use MVC, and I’m
having difficulty with some of the concepts.
Can I ask a follow-up quesiton on how to set this up? I will have a
that can belong to one or many sub-catagories which in turn belong to
many catagories. The same subcatagory name can belong to two different
catagories (although its referring to a different group of products).
example: Fishingline (catagory) -> Long (subcatagory) and Knives
-> Long (subcatagory), where the products in both are different.
- in the store, display just products in a subcatagory (under a
or display all products in the catagory (products belonging to all
- in the admin portal, be able to set the catagories and subcatagories
the product view
So there needs to be a class to represent the catagories. Should there
class for each subcatagory that has the catagory as a property?
Can the products view update the catagory that the product belongs to?
For displaying in the store, I currently have a store controller + views
that display all of hte items. Can the store controller show the
views based on the catagory? Or should the store controller own the
buttons that direct to the catagory views that show the specific subset
products? Do I need view and controller for the catagory class?
Thanks in advance for any advice you can provide!