public function actionDelcart($id) { $cart = new Cart(); $cart->delFromCart($id); return $this->redirect(Yii::$app->request->referrer); }