protected function assetBaseUrl($plugin, $asset)
    {
        $dir  = dirname($asset);
        $path = !empty($dir) && $dir != '.' ? "/$dir" : null;

        return $this->Url->assetUrl($plugin . $path);
    }
protected function assetBaseUrl($plugin, $asset)
    {
        $dir  = dirname($asset);
        $path = !empty($dir) && $dir != '.' ? "/$dir" : null;

        return $this->Url->assetUrl($plugin . $path);
    }
protected function assetBaseUrl ( $ plugin , $ asset ) { $ dir = dirname ( $ asset ) ; $ path = ! empty ( $ dir ) && $ dir != '.' ? "/$dir" : null ; return $ this -> Url -> assetUrl ( $ plugin . $ path ) ; }
Returns tha full base url for the given asset

@param  string $plugin Plugin where the asset resides.
@param  string $asset  The asset path.
@return string
Returns tha full base url for the given asset