8000 Update doc php typo fix by ehibes · Pull Request #9200 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update doc php typo fix #9200

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions introduction/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ them for you. Here's the same sample application, now built in Symfony::
{
$posts = $this->getDoctrine()
->getRepository(Post::class)
->findAll()
->findAll();

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

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

Expand All @@ -588,6 +588,7 @@ and uses Twig:

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

{% block body %}
<h1>List of Posts</h1>
<ul>
{% for post in posts %}
Expand All @@ -598,6 +599,7 @@ and uses Twig:
</li>
{% endfor %}
</ul>
{% endblock %}

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

Expand Down
0