Yii displaying a related HAS_MANY grid
In this example, we have a Cars table, as well as a Dealers table. A dealer has many cars. I want to show the (single) Dealer view, but also all of the cars that belong to this dealer in a grid on the same page. Here’s how: In your Dealer model, you should have something … [Read more…]