web\AssetManager getAssetUrl()

getAssetUrl() public method Returns the actual URL for the specified asset. The actual URL is obtained by prepending either $baseUrl or yii\web\AssetManager::$baseUrl to the given asset path. public string getAssetUrl ( $bundle, $asset )$bundle yii\web\AssetBundle The asset bundle which the asset file belongs to $asset string The asset path. This should be one of the assets listed in \yii\web\js or \yii\web\css. return string The actual URL for the specified asset.

web\AssetManager getConverter()

getConverter() public method Returns the asset converter. public yii\web\AssetConverterInterface getConverter ( )return yii\web\AssetConverterInterface The asset converter.

web\AssetManager getBundle()

getBundle() public method Returns the named asset bundle. 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. public yii\web\AssetBundle getBundle ( $name, $publish = true )$name string The class name of the asset bundle (without the leading backslash) $publish boolean Whether to publish the asset files in the asset bundle before it is returned. If you set this false, you must manual

web\AssetManager getAssetPath()

getAssetPath() public method Returns the actual file path for the specified asset. public string|boolean getAssetPath ( $bundle, $asset )$bundle yii\web\AssetBundle The asset bundle which the asset file belongs to $asset string The asset path. This should be one of the assets listed in \yii\web\js or \yii\web\css. return string|boolean The actual file path, or false if the asset is specified as an absolute URL

web\AssetManager $forceCopy

$forceCopy public property Whether the directory being published should be copied even if it is found in the target directory. This option is used only when publishing a directory. You may want to set this to be true during the development stage to make sure the published directory is always up-to-date. Do not set this to true on production servers as it will significantly degrade the performance. public boolean $forceCopy = false

web\AssetManager $hashCallback

$hashCallback public property (available since version 2.0.6) A callback that will be called to produce hash for asset directory generation. The signature of the callback should be as follows: function ($path) where $path is the asset path. Note that the $path can be either directory where the asset files reside or a single file. For a CSS file that uses relative path in url(), the hash implementation should use the directory path of the file instead of the file path to include the relativ

web\AssetManager $fileMode

$fileMode public property The permission to be set for newly published asset files. This value will be used by PHP chmod() function. No umask will be applied. If not set, the permission will be determined by the current environment. public integer $fileMode = null

web\AssetManager $linkAssets

$linkAssets public property Whether to use symbolic link to publish asset files. Defaults to false, meaning asset files are copied to $basePath. Using symbolic links has the benefit that the published assets will always be consistent with the source assets and there is no copy operation required. This is especially useful during development. However, there are special requirements for hosting environments in order to use symbolic links. In particular, symbolic links are supported only on Li

web\AssetManager $converter

$converter public property The asset converter. public yii\web\AssetConverterInterface getConverter ( )public void setConverter ( $value )

web\AssetManager $dirMode

$dirMode public property The permission to be set for newly generated asset directories. This value will be used by PHP chmod() function. No umask will be applied. Defaults to 0775, meaning the directory is read-writable by owner and group, but read-only for other users. public integer $dirMode = 509