diff --git a/book/forms.rst b/book/forms.rst index 48093e75efb..e60fe93c8bf 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -1854,7 +1854,7 @@ an array. You can also access POST values (in this case "name") directly through the request object, like so:: - $this->get('request')->request->get('name'); + $request->request->get('name'); Be advised, however, that in most cases using the ``getData()`` method is a better choice, since it returns the data (usually an object) after