We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentca3ef4b commit89849c2Copy full SHA for 89849c2
book/validation.rst
@@ -115,7 +115,7 @@ The job of the ``validator`` is easy: to read the constraints (i.e. rules)
115
of a class and verify whether or not the data on the object satisfies those
116
constraints. If validation fails, a non-empty list of errors
117
(class:class:`Symfony\\Component\\Validator\\ConstraintViolationList`) is
118
-returned. Take this simple example from inside a controller:
+returned. Take this simple example from inside a controller::
119
120
// ...
121
use Symfony\Component\HttpFoundation\Response;
@@ -169,7 +169,7 @@ You could also pass the collection of errors into a template.
169
return $this->render('AcmeBlogBundle:Author:validate.html.twig', array(
170
'errors' => $errors,
171
));
172
- }
+ }
173
174
Inside the template, you can output the list of errors exactly as needed:
175