diff --git a/components/form/introduction.rst b/components/form/introduction.rst index d6af2ad8863..141fc3696b7 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -144,14 +144,14 @@ component offers a rich integration. To use the integration, you'll need the ``TwigBridge``, which provides integration between Twig and several Symfony2 components. If you're using Composer, you -could install the latest 2.1 version by adding the following ``require`` +could install the latest 2.3 version by adding the following ``require`` line to your ``composer.json`` file: .. code-block:: json { "require": { - "symfony/twig-bridge": "2.1.*" + "symfony/twig-bridge": "2.3.*" } } @@ -220,15 +220,15 @@ via your own Twig extension. To use the built-in integration, be sure that your project has Symfony's ``Translation`` and :doc:`Config` components -installed. If you're using Composer, you could get the latest 2.1 version +installed. If you're using Composer, you could get the latest 2.3 version of each of these by adding the following to your ``composer.json`` file: .. code-block:: json { "require": { - "symfony/translation": "2.1.*", - "symfony/config": "2.1.*" + "symfony/translation": "2.3.*", + "symfony/config": "2.3.*" } } @@ -272,13 +272,13 @@ array or object) and pass it through your own validation system. To use the integration with Symfony's Validator component, first make sure it's installed in your application. If you're using Composer and want to -install the latest 2.1 version, add this to your ``composer.json``: +install the latest 2.3 version, add this to your ``composer.json``: .. code-block:: json { "require": { - "symfony/validator": "2.1.*" + "symfony/validator": "2.3.*" } } @@ -555,7 +555,7 @@ If the request is a POST, process the submitted data (via ``bind``). Then: to ``bind``:: if (isset($_POST[$form->getName()])) { - $form->bind($_POST[$form->getName()) + $form->bind($_POST[$form->getName()]); // ... } @@ -618,4 +618,4 @@ and the errors will display next to the fields on error. .. _Packagist: https://packagist.org/packages/symfony/form .. _Twig: http://twig.sensiolabs.org -.. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html \ No newline at end of file +.. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html