@@ -27,7 +27,7 @@ submissions::
27
27
28
28
return $this->redirect($this->generateUrl('task_success'));
29
29
}
30
-
30
+
31
31
return $this->render('AcmeTaskBundle:Default:new.html.twig', array(
32
32
'form' => $form->createView(),
33
33
));
@@ -45,9 +45,9 @@ Calling Form::submit() manually
45
45
46
46
In some cases, you want better control over when exactly your form is submitted
47
47
and what data is passed to it. Instead of using the
48
- :method: `Symfony\C omponent\F orm\F ormInterface::handleRequest `
48
+ :method: `Symfony\\ Component\\ Form\ \ FormInterface::handleRequest `
49
49
method, pass the submitted data directly to
50
- :method: `Symfony\C omponent\F orm\F ormInterface::submit `::
50
+ :method: `Symfony\\ Component\\ Form\ \ FormInterface::submit `::
51
51
52
52
use Symfony\Component\HttpFoundation\Request;
53
53
// ...
@@ -76,8 +76,8 @@ method, pass the submitted data directly to
76
76
.. tip ::
77
77
78
78
Forms consisting of nested fields expect an array in
79
- :method: `Symfony\C omponent\F orm\F ormInterface::submit `. You can also submit
80
- individual fields by calling :method: `Symfony\C omponent\F orm\F ormInterface::submit `
79
+ :method: `Symfony\\ Component\\ Form\ \ FormInterface::submit `. You can also submit
80
+ individual fields by calling :method: `Symfony\\ Component\\ Form\ \ FormInterface::submit `
81
81
directly on the field::
82
82
83
83
$form->get('firstName')->submit('Fabien');
@@ -90,7 +90,7 @@ Passing a Request to Form::submit() (deprecated)
90
90
.. versionadded :: 2.3
91
91
Before Symfony 2.3, the ``submit `` method was known as ``bind ``.
92
92
93
- Before Symfony 2.3, the :method: `Symfony\C omponent\F orm\F ormInterface::submit `
93
+ Before Symfony 2.3, the :method: `Symfony\\ Component\\ Form\ \ FormInterface::submit `
94
94
method accepted a :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` object as
95
95
a convenient shortcut to the previous example::
96
96
@@ -118,7 +118,7 @@ a convenient shortcut to the previous example::
118
118
));
119
119
}
120
120
121
- Passing the :class: `Symfony\\ Component\H ttpFoundation\\ Request ` directly to
121
+ Passing the :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` directly to
122
122
:method: `Symfony\\ Component\\ Form\\ FormInterface::submit ` still works, but is
123
123
deprecated and will be removed in Symfony 3.0. You should use the method
124
- :method: `Symfony\C omponent\F orm\F ormInterface::handleRequest ` instead.
124
+ :method: `Symfony\\ Component\\ Form\ \ FormInterface::handleRequest ` instead.
0 commit comments