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

doc_Yii
2016-10-30 17:14:36
Comments
Leave a Comment

Please login to continue.