File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 4
4
Creating and Using Templates
5
5
============================
6
6
7
- As you know, the :doc: `controller </controller >` is responsible for
8
- handling each request that comes into a Symfony application. In reality,
9
- the controller delegates most of the heavy work to other places so that
10
- code can be tested and reused. When a controller needs to generate HTML,
7
+ As explained in :doc: `the previous article </controller >`, controllers are
8
+ responsible for handling each request that comes into a Symfony application and
9
+ the usually end up rendering a template to generate the response contents.
10
+
11
+ In reality, the controller delegates most of the heavy work to other places so
12
+ that code can be tested and reused. When a controller needs to generate HTML,
11
13
CSS or any other content, it hands the work off to the templating engine.
14
+
12
15
In this article, you'll learn how to write powerful templates that can be
13
16
used to return content to the user, populate email bodies, and more. You'll
14
17
learn shortcuts, clever ways to extend templates and how to reuse template
15
18
code.
16
19
17
- .. note ::
18
-
19
- How to render templates is covered in the
20
- :ref: `controller <controller-rendering-templates >` article.
21
-
22
20
.. index ::
23
21
single: Templating; What is a template?
24
22
You can’t perform that action at this time.
0 commit comments