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
62
62
assets
63
63
~~~~~~
64
64
65
+ The following options configure the behavior of the
66
+ :ref: `Twig asset() function <reference-twig-function-asset >`.
67
+
65
68
.. _reference-assets-base-path :
66
69
67
70
base_path
68
71
.........
69
72
70
73
**type **: ``string ``
71
74
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:
73
76
74
77
.. configuration-block ::
75
78
@@ -108,6 +111,9 @@ This option allows you to define a base path to be used for assets:
108
111
->basePath('/images');
109
112
};
110
113
114
+ With this configuration, a call to ``asset('logo.png') `` will generate
115
+ ``/images/logo.png `` instead of ``/logo.png ``.
116
+
111
117
.. _reference-templating-base-urls :
112
118
.. _reference-assets-base-urls :
113
119
You can’t perform that action at this time.
0 commit comments