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 @@ -62,14 +62,17 @@ The directory to store cache files for annotations, in case
6262assets
6363~~~~~~
6464
65+ The following options configure the behavior of the
66+ :ref: `Twig asset() function <reference-twig-function-asset >`.
67+
6568.. _reference-assets-base-path :
6669
6770base_path
6871.........
6972
7073**type **: ``string ``
7174
72- This option allows you to define a base path to be used for assets:
75+ This option allows you to prepend a base path to the URLs generated for assets:
7376
7477.. configuration-block ::
7578
@@ -108,6 +111,9 @@ This option allows you to define a base path to be used for assets:
108111 ->basePath('/images');
109112 };
110113
114+ With this configuration, a call to ``asset('logo.png') `` will generate
115+ ``/images/logo.png `` instead of ``/logo.png ``.
116+
111117.. _reference-templating-base-urls :
112118.. _reference-assets-base-urls :
113119
You can’t perform that action at this time.
0 commit comments