public function actionPkgdelete($id) { $model = MPkg::findOne($id); $model->delete(); return $this->redirect(['pkglist']); }