Искал на форуме, так и не нашел... Подскажите, как во view (и где этот вид можно менять?) категории выводить товар, который относится к этой категории?
в модели категории я прописал
Код: Выделить всё
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'goods' => array(self::MANY_MANY, 'Goods', 'tbl_goods_to_categories(id_categori,id_product)')
);
}