8000 minor #9200 Update doc php typo fix (ehibes) · symfony/symfony-docs@0be344b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0be344b

Browse files
committed
minor #9200 Update doc php typo fix (ehibes)
This PR was merged into the 4.0 branch. Discussion ---------- Update doc php typo fix Commits ------- b2adbde Update doc php typo fix
2 parents e486b07 + b2adbde commit 0be344b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

introduction/from_flat_php_to_symfony2.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ them for you. Here's the same sample application, now built in Symfony::
551551
{
552552
$posts = $this->getDoctrine()
553553
->getRepository(Post::class)
554-
->findAll()
554+
->findAll();
555555

556556
return $this->render('blog/list.html.twig', ['posts' => $posts]);
557557
}
@@ -567,7 +567,7 @@ them for you. Here's the same sample application, now built in Symfony::
567567
throw $this->createNotFoundException();
568568
}
569569

570-
return $this->render('blog/show.html.php', ['post' => $post]);
570+
return $this->render('blog/show.html.twig', ['post' => $post]);
571571
}
572572
}
573573

@@ -588,6 +588,7 @@ and uses Twig:
588588

589589
{% block title %}List of Posts{% endblock %}
590590

591+
{% block body %}
591592
<h1>List of Posts</h1>
592593
<ul>
593594
{% for post in posts %}
@@ -598,6 +599,7 @@ and uses Twig:
598599
</li>
599600
{% endfor %}
600601
</ul>
602+
{% endblock %}
601603

602604
The ``layout.php`` file is nearly identical:
603605

0 commit comments

Comments
 (0)
0