From 656c0767d37c9d7d34724de598d2e31e2dbc3c27 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 8 Nov 2023 07:41:54 +0900 Subject: [PATCH] docs: replace getVar() with getPost() getVar() is not recommended. --- user_guide_src/source/incoming/controllers/006.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_guide_src/source/incoming/controllers/006.php b/user_guide_src/source/incoming/controllers/006.php index 555a8c98d570..8bf7045411f1 100644 --- a/user_guide_src/source/incoming/controllers/006.php +++ b/user_guide_src/source/incoming/controllers/006.php @@ -8,7 +8,7 @@ public function product(int $id) { $data = [ 'id' => $id, - 'name' => $this->request->getVar('name'), + 'name' => $this->request->getPost('name'), ]; $rule = [