Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
9e388b22
Commit
9e388b22
authored
Feb 25, 2018
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed CS
parent
33e6b153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
doc/providers/asset.rst
doc/providers/asset.rst
+5
-6
No files found.
doc/providers/asset.rst
View file @
9e388b22
...
@@ -55,10 +55,11 @@ Registering
...
@@ -55,10 +55,11 @@ Registering
Usage
Usage
-----
-----
The AssetServiceProvider is mostly useful with the Twig provider using the asset(method).
The
AssetServiceProvider
is
mostly
useful
with
the
Twig
provider
using
the
This has two string arguments. In the case of named packages, the first is the path relative to
``
asset
()``
method
.
It
takes
two
arguments
.
In
the
case
of
named
the base_path specified in the package definition and the second is the package name. For unmamed
packages
,
the
first
is
the
path
relative
to
the
base_path
specified
in
the
packages, there is only one argument, the path relative to the assets folder:
package
definition
and
the
second
is
the
package
name
.
For
unmamed
packages
,
there
is
only
one
argument
,
the
path
relative
to
the
assets
folder
:
..
code
-
block
::
jinja
..
code
-
block
::
jinja
...
@@ -67,8 +68,6 @@ packages, there is only one argument, the path relative to the assets folder:
...
@@ -67,8 +68,6 @@ packages, there is only one argument, the path relative to the assets folder:
{{
asset
(
'/img/foo.png'
,
'images'
)
}}
{{
asset
(
'/img/foo.png'
,
'images'
)
}}
{{
asset_version
(
'/css/foo.png'
)
}}
{{
asset_version
(
'/css/foo.png'
)
}}
For
more
information
,
check
out
the
`
Asset
Component
documentation
For
more
information
,
check
out
the
`
Asset
Component
documentation
<
https
://
symfony
.
com
/
doc
/
current
/
components
/
asset
/
introduction
.
html
>`
_
.
<
https
://
symfony
.
com
/
doc
/
current
/
components
/
asset
/
introduction
.
html
>`
_
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment