Permalink
Browse files

bug #4765 [Book][Forms] avoid the request service where possible (xab…

…buh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Book][Forms] avoid the request service where possible

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Commits
-------

a6e1a28 avoid the request service where possible
  • Loading branch information...
wouterj committed Jan 8, 2015
2 parents dc5d8f8 + a6e1a28 commit ffe3425f6a0ef97be45f29608c6be02db24e98f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit ffe3425

Please sign in to comment.