Exemplo n.º 1
0
 public function actionDelete($id)
 {
     if ($model = Feedback::findOne($id)) {
         $model->delete();
     } else {
         $this->error = Yii::t('easyii', 'Not found');
     }
     return $this->formatResponse(Yii::t('easyii/awarness', 'Feedback deleted'));
 }