diff --git a/form/action_method.rst b/form/action_method.rst index 2cea4ab8226..132d766ea4b 100644 --- a/form/action_method.rst +++ b/form/action_method.rst @@ -25,7 +25,7 @@ form, you can use ``setAction()`` and ``setMethod()``: class DefaultController extends Controller { - public function newAction() + public function new() { $form = $this->createFormBuilder($task) ->setAction($this->generateUrl('target_route')) @@ -83,7 +83,7 @@ options: class DefaultController extends Controller { - public function newAction() + public function new() { // ... diff --git a/form/create_custom_field_type.rst b/form/create_custom_field_type.rst index 936591f627f..fe9633084a1 100644 --- a/form/create_custom_field_type.rst +++ b/form/create_custom_field_type.rst @@ -141,7 +141,7 @@ link for details), create a ``shipping_widget`` block to handle this: .. code-block:: html+php - +