public function actionDelete($id) { $this->findModel($id)->delete(); return $this->redirect(['index']); }