modules/admin/controllers/AnswerController.php
/**
     * Deletes an existing Answer model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Deletes an existing Answer model.
If deletion is successful, the browser will be redirected to the 'index' page.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Deletes an existing Answer model . If deletion is successful the browser will be redirected to the ' index ' page . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionDelete($id)
    {
        $model = $this->findModel($id);
        $model->status = -1;
        $model->save();
        return $this->redirect(Yii::$app->request->referrer);
    }
public function actionDelete ( $ id ) { $ model = $ this -> findModel ( $ id ) ; $ model -> status = - 1 ; $ model -> save ( ) ; return $ this -> redirect ( Yii :: $ app -> request -> referrer ) ; }
Deletes an existing Answer model.
Deletes an existing Answer model .