registerAssetBundle() public method
Registers the named asset bundle.
All dependent asset bundles will be registered.
public yii\web\AssetBundle registerAssetBundle ( $name, $position = null ) | ||
---|---|---|
$name | string |
The class name of the asset bundle (without the leading backslash) |
$position | integer|null |
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. See registerJsFile() for more details on javascript position. |
return | yii\web\AssetBundle |
The registered asset bundle instance |
throws | yii\base\InvalidConfigException |
if the asset bundle does not exist or a circular dependency is detected |
Please login to continue.