Skip to content

Commit 3747271

Browse files
committed
docs: replace getVar() with getPost()
getVar() is not recommended.
1 parent 98ed457 commit 3747271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • user_guide_src/source/incoming/controllers

user_guide_src/source/incoming/controllers/006.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public function product(int $id)
88
{
99
$data = [
1010
'id' => $id,
11-
'name' => $this->request->getVar('name'),
11+
'name' => $this->request->getPost('name'),
1212
];
1313

1414
$rule = [

0 commit comments

Comments
 (0)