diff --git a/book/forms.rst b/book/forms.rst index 7ee7bff700d..504cc8a7ed6 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -1036,7 +1036,9 @@ to the ``form()`` or the ``form_start()`` helper: start($form, array( - 'action' => $view['router']->generate('target_route'), + // The path() method was introduced in Symfony 2.8. Prior to 2.8, + // you had to use generate(). + 'action' => $view['router']->path('target_route'), 'method' => 'GET', )) ?> diff --git a/book/from_flat_php_to_symfony2.rst b/book/from_flat_php_to_symfony2.rst index d243b390434..5420a31ea1b 100644 --- a/book/from_flat_php_to_symfony2.rst +++ b/book/from_flat_php_to_symfony2.rst @@ -598,7 +598,7 @@ database and the Templating component to render a template and return a