public function actionDeleteParam($id)
    {
        $param = Param::findOne($id);
        $param->delete();
        $this->trigger(self::EVENT_AFTER_EDIT_PRODUCT, new ProductEvent([
            'id' => $param->product_id
        ]));
        return $this->redirect(Yii::$app->request->referrer);
    }
public function actionDeleteParam($id)
    {
        $param = Param::findOne($id);
        $param->delete();
        $this->trigger(self::EVENT_AFTER_EDIT_PRODUCT, new ProductEvent([
            'id' => $param->product_id
        ]));
        return $this->redirect(Yii::$app->request->referrer);
    }
public function actionDeleteParam ( $ id ) { $ param = Param :: findOne ( $ id ) ; $ param -> delete ( ) ; $ this -> trigger ( self :: EVENT_AFTER_EDIT_PRODUCT , new ProductEvent ( [ 'id' => $ param -> product_id ] ) ) ; return $ this -> redirect ( Yii :: $ app -> request -> referrer ) ; }
Deletes param from product model.

Users which have 'updateOwnProduct' permission can delete params only for Product models that have been created by their.
Users which have 'updateProduct' permission can delete params for all Product models.

@param integer $id
@return mixed
@throws ForbiddenHttpException
Deletes param from product model .