public function actionDelete($id) { $model = LoanDrawRequest::findOne($id); $model->status = 3; $model->save(); return $this->redirect('index'); }