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
d6d4df4b
Commit
d6d4df4b
authored
Nov 11, 2014
by
Klimov Paul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:yiisoft/yii2
parents
63e434b4
3fb1effe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
structure-assets.md
docs/guide/structure-assets.md
+3
-3
AssetManager.php
framework/web/AssetManager.php
+1
-1
View.php
framework/web/View.php
+1
-1
No files found.
docs/guide/structure-assets.md
View file @
d6d4df4b
...
...
@@ -21,9 +21,9 @@ JavaScript files in the bundle in the rendered Web page.
## Defining Asset Bundles <a name="defining-asset-bundles"></a>
Asset bundles are specified as PHP classes extending from
[
[yii\web\AssetBundle
]
]. The name of a bundle is simply
its corresponding
PHP class name which should be
[
autoloadable
](
concept-autoloading.md
)
. In an asset bundle class,
you would typically specify where the assets are located, what CSS and JavaScript files the bundle contains, and
how the bundle depends on other bundles.
its corresponding
fully qualified PHP class name (without the leading backslash). An asset bundle class should
be
[
autoloadable
](
concept-autoloading.md
)
. It usually specifies where the assets are located, what CSS and
JavaScript files the bundle contains, and
how the bundle depends on other bundles.
The following code defines the main asset bundle used by
[
the basic application template
](
start-installation.md
)
:
...
...
framework/web/AssetManager.php
View file @
d6d4df4b
...
...
@@ -178,7 +178,7 @@ class AssetManager extends Component
* This method will first look for the bundle in [[bundles]]. If not found,
* it will treat `$name` as the class of the asset bundle and create a new instance of it.
*
* @param string $name the class name of the asset bundle
* @param string $name the class name of the asset bundle
(without the leading backslash)
* @param boolean $publish whether to publish the asset files in the asset bundle before it is returned.
* If you set this false, you must manually call `AssetBundle::publish()` to publish the asset files.
* @return AssetBundle the asset bundle instance
...
...
framework/web/View.php
View file @
d6d4df4b
...
...
@@ -269,7 +269,7 @@ class View extends \yii\base\View
/**
* Registers the named asset bundle.
* All dependent asset bundles will be registered.
* @param string $name the
name of the asset bundle.
* @param string $name the
class name of the asset bundle (without the leading backslash)
* @param integer|null $position if set, this forces a minimum position for javascript files.
* This will adjust depending assets javascript file position or fail if requirement can not be met.
* If this is null, asset bundles position settings will not be changed.
...
...
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