public function getAssetPath($bundle, $asset)
    {
        if (($actualAsset = $this->resolveAsset($bundle, $asset)) !== false) {
            return Url::isRelative($actualAsset) ? $this->getRealBasePath() . '/' . $actualAsset : false;
        }

        return Url::isRelative($asset) ? $bundle->basePath . '/' . $asset : false;
    }
public function getAssetPath($bundle, $asset)
    {
        if (($actualAsset = $this->resolveAsset($bundle, $asset)) !== false) {
            return Url::isRelative($actualAsset) ? $this->getRealBasePath() . '/' . $actualAsset : false;
        }

        return Url::isRelative($asset) ? $bundle->basePath . '/' . $asset : false;
    }
public function getAssetPath ( $ bundle , $ asset ) { if ( ( $ actualAsset = $ this -> resolveAsset ( $ bundle , $ asset ) ) !== false ) { return Url :: isRelative ( $ actualAsset ) ? $ this -> getRealBasePath ( ) . '/' . $ actualAsset : false ; } return Url :: isRelative ( $ asset ) ? $ bundle -> basePath . '/' . $ asset : false ; }
Returns the actual file path for the specified asset.
@param AssetBundle $bundle the asset bundle which the asset file belongs to
@param string $asset the asset path. This should be one of the assets listed in [[AssetBundle::$js]] or [[AssetBundle::$css]].
@return string|false the actual file path, or `false` if the asset is specified as an absolute URL
Returns the actual file path for the specified asset .