File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2061,14 +2061,17 @@ Whether to enable or not SSI support in your application.
2061
2061
assets
2062
2062
~~~~~~
2063
2063
2064
+ The following options configure the behavior of the
2065
+ :ref: `Twig asset() function <reference-twig-function-asset >`.
2066
+
2064
2067
.. _reference-assets-base-path :
2065
2068
2066
2069
base_path
2067
2070
.........
2068
2071
2069
2072
**type **: ``string ``
2070
2073
2071
- This option allows you to define a base path from where Twig's `` {{ asset() }} `` function is resolved :
2074
+ This option allows you to prepend a base path to the URLs generated for assets :
2072
2075
2073
2076
.. configuration-block ::
2074
2077
@@ -2107,6 +2110,9 @@ This option allows you to define a base path from where Twig's ``{{ asset() }}``
2107
2110
->basePath('/images');
2108
2111
};
2109
2112
2113
+ With this configuration, a call to ``asset('logo.png') `` will generate
2114
+ ``/images/logo.png `` instead of ``/logo.png ``.
2115
+
2110
2116
.. _reference-templating-base-urls :
2111
2117
.. _reference-assets-base-urls :
2112
2118
You can’t perform that action at this time.
0 commit comments