Hello. I am new to the Yii framework (and PHP frameworks in general)
Suppose I have two tables:
-
Manufacturer(id, name)
-
Product(id, productName, manufacturerId)
I want to show a list of Manufacturers on one pane, and the Products on the content pane of the same page. If the user clicks on a manufacturer, the content pane shows products build by that manufacturer.
This should be pretty easy when not using frameworks but I’ve never gotten around to learning how to do it in Yii.
Related question:
How do I do the same using a many-to-many type such as:
-
Product(id, productName)
-
ProductCategory(productId, categoryId)
-
Category(id, categoryName)
This would have categories on the one pane.
TIA all.