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

Appearance settings

Made docs in sync with standard edition code #7136

New issue

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
Nov 22, 2016
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
16 changes: 11 additions & 5 deletions 16 quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ because that will be explained in the next section)::
*/
public function indexAction()
{
return $this->render('default/index.html.twig');
return $this->render('default/index.html.twig', [
// ...
]);
}
}

Expand All @@ -79,8 +81,8 @@ just call other parts of the application to get or generate the needed
information and then they render a template to show the results to the user.

In this example, the ``index`` action is practically empty because it doesn't
need to call any other method. The action just renders a template with the
*Homepage* content.
need to call any other method. The action just renders a template to welcome
you to Symfony.

Routing
~~~~~~~
Expand All @@ -103,7 +105,9 @@ at the three lines of code above the ``indexAction()`` method::
*/
public function indexAction()
{
return $this->render('default/index.html.twig');
return $this->render('default/index.html.twig', [
// ...
]);
}
}

Expand Down Expand Up @@ -136,7 +140,9 @@ Templates

The only content of the ``index`` action is this PHP instruction::

return $this->render('default/index.html.twig');
return $this->render('default/index.html.twig', [
// ...
]);

The ``$this->render()`` method is a convenient shortcut to render a template.
Symfony provides some useful shortcuts to any controller extending from
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.