File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ that path over and over again::
215
215
// result: /static/images/logo.png?v1
216
216
217
217
// Base path is ignored when using absolute paths
218
- echo $package ->getUrl('/logo.png');
218
+ echo $pathPackage ->getUrl('/logo.png');
219
219
// result: /logo.png?v1
220
220
221
221
Request Context Aware Assets
@@ -239,7 +239,7 @@ class can take into account the context of the current request::
239
239
// result: /somewhere/static/images/logo.png?v1
240
240
241
241
// Both "base path" and "base url" are ignored when using absolute path for asset
242
- echo $package ->getUrl('/logo.png');
242
+ echo $pathPackage ->getUrl('/logo.png');
243
243
// result: /logo.png?v1
244
244
245
245
Now that the request context is set, the ``PathPackage `` will prepend the
You can’t perform that action at this time.
0 commit comments