Skip to content

Commit

Permalink
Re-reading the routing chapter
Browse files Browse the repository at this point in the history
1) Removing a lot of duplication
2) Deleted method_parameters (this topic seemed to be covered in multiple places)
  • Loading branch information
weaverryan committed Jul 14, 2016
1 parent 7b04ffd commit 6e48cee
Show file tree
Hide file tree
Showing 7 changed files with 277 additions and 468 deletions.
4 changes: 2 additions & 2 deletions form/action_method.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ to the ``form()`` or the ``form_start()`` helper functions:
will insert a hidden field with the name ``_method`` that stores this method.
The form will be submitted in a normal POST request, but Symfony's router
is capable of detecting the ``_method`` parameter and will interpret it as
a PUT, PATCH or DELETE request. Read the cookbook chapter
":doc:`/routing/method_parameters`" for more information.
a PUT, PATCH or DELETE request. See the :ref:`configuration-framework-http_method_override`
option.
2 changes: 1 addition & 1 deletion redirection_map
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
/cookbook/routing/debug /routing/debug
/cookbook/routing/external_resources /routing/external_resources
/cookbook/routing/extra_information /routing/extra_information
/cookbook/routing/method_parameters /routing/method_parameters
/cookbook/routing/method_parameters /routing/requirements
/cookbook/routing/optional_placeholders /routing/optional_placeholders
/cookbook/routing/redirect_in_config /routing/redirect_in_config
/cookbook/routing/redirect_trailing_slash /routing/redirect_trailing_slash
Expand Down
2 changes: 1 addition & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ named ``kernel.http_method_override``.

.. seealso::

For more information, see :doc:`/routing/method_parameters`.
For more information, see :doc:`/form/action_method`.

.. caution::

Expand Down
4 changes: 2 additions & 2 deletions reference/forms/types/options/method.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ is used to decide whether to process the form submission in the
When the method is PUT, PATCH, or DELETE, Symfony will automatically
render a ``_method`` hidden field in your form. This is used to "fake"
these HTTP methods, as they're not supported on standard browsers. For
more information, see :doc:`/routing/method_parameters`.
these HTTP methods, as they're not supported on standard browsers. This can
be useful when using :ref:`method routing requirements <routing-method-requirement>`.

.. note::

Expand Down
Loading

0 comments on commit 6e48cee

Please sign in to comment.