Skip to content

Commit

Permalink
docs: replace getVar() with getPost()
Browse files Browse the repository at this point in the history
getVar() is not recommended.
  • Loading branch information
kenjis committed Nov 7, 2023
1 parent 8a7366e commit 656c076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/incoming/controllers/006.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function product(int $id)
{
$data = [
'id' => $id,
'name' => $this->request->getVar('name'),
'name' => $this->request->getPost('name'),
];

$rule = [
Expand Down

0 comments on commit 656c076

Please sign in to comment.