Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
ecd9181a
Commit
ecd9181a
authored
Sep 26, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wrong link [skip ci]
parent
ef703e43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
structure-assets.md
docs/guide/structure-assets.md
+3
-3
No files found.
docs/guide/structure-assets.md
View file @
ecd9181a
...
...
@@ -72,8 +72,8 @@ explanation about the properties of [[yii\web\AssetBundle]] can be found in the
forward slash "/" should be used as directory separators. Each JavaScript file can be specified in one of the
following two formats:
-
a relative path representing a local JavaScript file (e.g.
`js/main.js`
). The actual path of the file
can be determined by prepending
[
[basePath
]
] to the relative path, and the actual URL
of the file can be determined by prepending
[
[baseUrl
]
] to the relative path.
can be determined by prepending
[
[
yii\web\AssetManager::
basePath
]
] to the relative path, and the actual URL
of the file can be determined by prepending
[
[
yii\web\AssetManager::
baseUrl
]
] to the relative path.
-
an absolute URL representing an external JavaScript file. For example,
`http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js`
or
`//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js`
.
...
...
@@ -293,7 +293,7 @@ return [
The keys of [[yii\web\AssetManager::assetMap|assetMap]] are the asset names that you want to fix, and the values
are the desired asset paths. When you register an asset bundle with a view, each relative asset file in its
[[yii\web\AssetBundle::css|css]] and [[yii\web\AssetBundle::js|js]] arrays will be examined against this map.
If any of the keys is found to be the last part of an asset file (which is prefixed with [[AssetBundle::sourcePath]]
If any of the keys is found to be the last part of an asset file (which is prefixed with [[
yii\web\
AssetBundle::sourcePath]]
if available), the corresponding value will replace the asset and be registered with the view.
For example, an asset file `my/path/to/jquery.js` matches a key `jquery.js`.
...
...
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