File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ The job of the ``validator`` is easy: to read the constraints (i.e. rules)
115
115
of a class and verify whether or not the data on the object satisfies those
116
116
constraints. If validation fails, a non-empty list of errors
117
117
(class :class: `Symfony\\ Component\\ Validator\\ ConstraintViolationList `) is
118
- returned. Take this simple example from inside a controller:
118
+ returned. Take this simple example from inside a controller::
119
119
120
120
// ...
121
121
use Symfony\Component\HttpFoundation\Response;
@@ -169,7 +169,7 @@ You could also pass the collection of errors into a template.
169
169
return $this->render('AcmeBlogBundle:Author:validate.html.twig', array(
170
170
'errors' => $errors,
171
171
));
172
- }
172
+ }
173
173
174
174
Inside the template, you can output the list of errors exactly as needed:
175
175
You can’t perform that action at this time.
0 commit comments