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

Commit 9f7b632

Browse filesBrowse files
committed
Made docs in sync with standard edition code
1 parent 8336d71 commit 9f7b632
Copy full SHA for 9f7b632

File tree

Expand file treeCollapse file tree

1 file changed

+11
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-5
lines changed

‎quick_tour/the_big_picture.rst

Copy file name to clipboardExpand all lines: quick_tour/the_big_picture.rst
+11-5Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ because that will be explained in the next section)::
6161
*/
6262
public function indexAction()
6363
{
64-
return $this->render('default/index.html.twig');
64+
return $this->render('default/index.html.twig', [
65+
// ...
66+
]);
6567
}
6668
}
6769

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

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

8587
Routing
8688
~~~~~~~
@@ -103,7 +105,9 @@ at the three lines of code above the ``indexAction()`` method::
103105
*/
104106
public function indexAction()
105107
{
106-
return $this->render('default/index.html.twig');
108+
return $this->render('default/index.html.twig', [
109+
// ...
110+
]);
107111
}
108112
}
109113

@@ -136,7 +140,9 @@ Templates
136140

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

139-
return $this->render('default/index.html.twig');
143+
return $this->render('default/index.html.twig', [
144+
// ...
145+
]);
140146

141147
The ``$this->render()`` method is a convenient shortcut to render a template.
142148
Symfony provides some useful shortcuts to any controller extending from

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.