I have two model objects (Product and ProductItem) and associated controllers, views & etc. (generated using yiic). Products contain 0…n ProductItems.
I want to have a single view for editing the two model objects but I'm not too sure how to do that. I have the _form view file for Product and I can put a list of existing ProductItems in that (findAll query) but I also need be able to create new ProductItems.
So, can I get a reference to the ProductItem controller and render the ProductItem form into the Product form or is there some other way I should do that.
thanks,