@@ -474,7 +474,6 @@ The meetup is passed as an entity field to the form. So we can access each
474
474
sport like this::
475
475
476
476
// src/Acme/DemoBundle/Form/Type/SportMeetupType.php
477
-
478
477
namespace Acme\DemoBundle\Form\Type;
479
478
480
479
use Symfony\Component\Form\AbstractType;
@@ -548,7 +547,6 @@ new field automatically and map it to the submitted client data.
548
547
The type would now look like::
549
548
550
549
// src/Acme/DemoBundle/Form/Type/SportMeetupType.php
551
-
552
550
namespace Acme\DemoBundle\Form\Type;
553
551
554
552
// ...
@@ -613,7 +611,6 @@ the sport is selected. This should be handled by making an AJAX call back to
613
611
your application. Assume that you have a sport meetup creation controller::
614
612
615
613
// src/Acme/DemoBundle/Controller/MeetupController.php
616
-
617
614
namespace Acme\DemoBundle\Controller;
618
615
619
616
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
@@ -657,7 +654,6 @@ it makes use of `jQuery`_ library and the `FOSJsRoutingBundle`_:
657
654
.. code-block :: html+jinja
658
655
659
656
{# src/Acme/DemoBundle/Resources/views/Meetup/create.html.twig #}
660
-
661
657
{{ form_start(form) }}
662
658
{{ form_row(form.sport) }} {# <select id="meetup_sport" ... #}
663
659
{{ form_row(form.position) }} {# <select id="meetup_position" ... #}
@@ -693,7 +689,6 @@ it makes use of `jQuery`_ library and the `FOSJsRoutingBundle`_:
693
689
.. code-block :: html+php
694
690
695
691
<!-- src/Acme/DemoBundle/Resources/views/Meetup/create.html.php -->
696
-
697
692
<?php echo $view['form']->start($form) ?>
698
693
<?php echo $view['form']->row($form['sport']) ?> <!-- <select id="meetup_sport" ... -->
699
694
<?php echo $view['form']->row($form['position']) ?> <!-- <select id="meetup_position" ... -->
@@ -733,7 +728,6 @@ of the :doc:`@ParamConverter </bundles/SensioFrameworkExtraBundle/annotations/co
733
728
listener to convert the submitted sport ID into a ``Sport `` object::
734
729
735
730
// src/Acme/DemoBundle/Controller/MeetupController.php
736
-
737
731
namespace Acme\DemoBundle\Controller;
738
732
739
733
// ...
0 commit comments