public function actionGudangdelete($id) { $model = Gudang::findOne($id)->delete(); $this->layout = $this->CheckSession(); return $this->redirect(['warehouse/gudangindex']); }