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.
20612061assets
20622062~~~~~~
20632063
2064+ The following options configure the behavior of the
2065+ :ref: `Twig asset() function <reference-twig-function-asset >`.
2066+
20642067.. _reference-assets-base-path :
20652068
20662069base_path
20672070.........
20682071
20692072**type **: ``string ``
20702073
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 :
20722075
20732076.. configuration-block ::
20742077
@@ -2107,6 +2110,9 @@ This option allows you to define a base path from where Twig's ``{{ asset() }}``
21072110 ->basePath('/images');
21082111 };
21092112
2113+ With this configuration, a call to ``asset('logo.png') `` will generate
2114+ ``/images/logo.png `` instead of ``/logo.png ``.
2115+
21102116.. _reference-templating-base-urls :
21112117.. _reference-assets-base-urls :
21122118
You can’t perform that action at this time.
0 commit comments