Skip to content

Commit ef50b86

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Tweaks [Framework] Clarifying what `base_path` actually does
2 parents 751baa6 + 5520e06 commit ef50b86

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reference/configuration/framework.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@ The directory to store cache files for annotations, in case
6262
assets
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

6770
base_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

0 commit comments

Comments
 (0)