Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89849c2

Browse files
committed
fix code block syntax
1 parentca3ef4b commit89849c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎book/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The job of the ``validator`` is easy: to read the constraints (i.e. rules)
115115
of a class and verify whether or not the data on the object satisfies those
116116
constraints. If validation fails, a non-empty list of errors
117117
(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::
119119

120120
// ...
121121
use Symfony\Component\HttpFoundation\Response;
@@ -169,7 +169,7 @@ You could also pass the collection of errors into a template.
169169
return $this->render('AcmeBlogBundle:Author:validate.html.twig', array(
170170
'errors' => $errors,
171171
));
172-
}
172+
}
173173
174174
Inside the template, you can output the list of errors exactly as needed:
175175

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp