@@ -575,7 +575,7 @@ Creating links to other pages in your application is one of the most common
575
575
jobs for a template. Instead of hardcoding URLs in templates, use the ``path ``
576
576
Twig function (or the ``router `` helper in PHP) to generate URLs based on
577
577
the routing configuration. Later, if you want to modify the URL of a particular
578
- page, all you'll need to do is change the routing configuration; the templates
578
+ page, all you'll need to do is change the routing configuration: the templates
579
579
will automatically generate the new URL.
580
580
581
581
First, link to the "_welcome" page, which is accessible via the following routing
@@ -706,7 +706,7 @@ route:
706
706
707
707
In this case, you need to specify both the route name (``article_show ``) and
708
708
a value for the ``{slug} `` parameter. Using this route, revisit the
709
- ``recent_list `` template from the previous section and link to the articles
709
+ ``recent_list.html.twig `` template from the previous section and link to the articles
710
710
correctly:
711
711
712
712
.. configuration-block ::
@@ -905,14 +905,14 @@ block of the base template.
905
905
906
906
You can also include assets located in your bundles' ``Resources/public `` folder.
907
907
You will need to run the ``php app/console assets:install target [--symlink] ``
908
- command, which moves (or symlinks) files into the correct location. (target
908
+ command, which copies (or symlinks) files into the correct location. (target
909
909
is by default "web").
910
910
911
911
.. code-block :: html+twig
912
912
913
913
<link href="{{ asset('bundles/acmedemo/css/contact.css') }}" rel="stylesheet" />
914
914
915
- The end result is a page that includes both the ``main.css `` and ``contact.css ``
915
+ The end result is a page that includes `` main.js `` and both the ``main.css `` and ``contact.css ``
916
916
stylesheets.
917
917
918
918
Referencing the Request, User or Session
@@ -934,7 +934,7 @@ Suppose ``description`` equals ``I <3 this product``:
934
934
.. code-block :: twig
935
935
936
936
<!-- output escaping is on automatically -->
937
- {{ description }} <!-- I <3 this product -->
937
+ {{ description }} <!-- I <3 this product -->
938
938
939
939
<!-- disable output escaping with the raw filter -->
940
940
{{ description|raw }} <!-- I <3 this product -->
0 commit comments