public function actionAddProduct($id) { $product = Product::findOne($id); $this->basket->add($product); return $this->redirect(['site/index']); }