@@ -745,10 +745,8 @@ tags:
745
745
<container xmlns =" http://symfony.com/schema/dic/services"
746
746
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
747
747
xmlns : framework =" http://symfony.com/schema/dic/symfony"
748
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
749
- http://symfony.com/schema/dic/services/services-1.0.xsd
750
- http://symfony.com/schema/dic/symfony
751
- http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
748
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
749
+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
752
750
753
751
<!-- ... -->
754
752
<framework : config >
@@ -784,10 +782,8 @@ in your application configuration:
784
782
<container xmlns =" http://symfony.com/schema/dic/services"
785
783
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
786
784
xmlns : framework =" http://symfony.com/schema/dic/symfony"
787
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
788
- http://symfony.com/schema/dic/services/services-1.0.xsd
789
- http://symfony.com/schema/dic/symfony
790
- http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
785
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
786
+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
791
787
792
788
<!-- ... -->
793
789
<framework : config >
@@ -827,7 +823,7 @@ any global default template that is defined):
827
823
new ControllerReference('...'),
828
824
array(
829
825
'renderer' => 'hinclude',
830
- 'default' => 'default/content.html.twig',
826
+ 'default' => 'default/content.html.twig',
831
827
)
832
828
) ?>
833
829
@@ -1018,18 +1014,13 @@ but Symfony provides a more dynamic option via the ``asset`` Twig function:
1018
1014
1019
1015
<img src="{{ asset('images/logo.png') }}" alt="Symfony!" />
1020
1016
1021
- <link href="{{ asset('css/blog.css') }}"
1022
- rel="stylesheet"
1023
- type="text/css" />
1017
+ <link href="{{ asset('css/blog.css') }}" rel="stylesheet" />
1024
1018
1025
1019
.. code-block :: html+php
1026
1020
1027
- <img src="<?php echo $view['assets']->getUrl('images/logo.png') ?>"
1028
- alt="Symfony!" />
1021
+ <img src="<?php echo $view['assets']->getUrl('images/logo.png') ?>" alt="Symfony!" />
1029
1022
1030
- <link href="<?php echo $view['assets']->getUrl('css/blog.css') ?>"
1031
- rel="stylesheet"
1032
- type="text/css" />
1023
+ <link href="<?php echo $view['assets']->getUrl('css/blog.css') ?>" rel="stylesheet" />
1033
1024
1034
1025
The ``asset `` function's main purpose is to make your application more portable.
1035
1026
If your application lives at the root of your host (e.g. http://example.com),
@@ -1154,8 +1145,7 @@ is by default "web").
1154
1145
1155
1146
.. code-block :: html+jinja
1156
1147
1157
- <link href="{{ asset('bundles/acmedemo/css/contact.css') }}"
1158
- rel="stylesheet" />
1148
+ <link href="{{ asset('bundles/acmedemo/css/contact.css') }}" rel="stylesheet" />
1159
1149
1160
1150
The end result is a page that includes both the ``main.css `` and ``contact.css ``
1161
1151
stylesheets.
@@ -1249,10 +1239,8 @@ configuration file:
1249
1239
<container xmlns =" http://symfony.com/schema/dic/services"
1250
1240
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1251
1241
xmlns : framework =" http://symfony.com/schema/dic/symfony"
1252
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
1253
- http://symfony.com/schema/dic/services/services-1.0.xsd
1254
- http://symfony.com/schema/dic/symfony
1255
- http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1242
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1243
+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1256
1244
1257
1245
<!-- ... -->
1258
1246
<framework : config >
0 commit comments