Пример #1
0
 public function actionList($product_id)
 {
     $product = Product::find($product_id)->one();
     $dataProvider = new ActiveDataProvider(['query' => Thumbnail::find()->where(['product_id' => $product->id])]);
     return $this->render('list', ['product' => $product, 'dataProvider' => $dataProvider]);
 }