helpers/Foundation.php
public static function getAssetsUrl($forceCopyAssets = false, $cdn = false)
    {
        if (!isset(static::$assetsUrl)) {
            if ($cdn) {
                static::$assetsUrl = '//cdn.jsdelivr.net/foundation/4.3.1/';
            } else {
                $assetsPath        = static::getAssetsPath();
                static::$assetsUrl = \Yii::app()->assetManager->publish($assetsPath, true, -1, $forceCopyAssets);
            }
        }
        return static::$assetsUrl;
    }
public static function getAssetsUrl($forceCopyAssets = false, $cdn = false)
    {
        if (!isset(static::$assetsUrl)) {
            if ($cdn) {
                static::$assetsUrl = '//cdn.jsdelivr.net/foundation/4.3.1/';
            } else {
                $assetsPath        = static::getAssetsPath();
                static::$assetsUrl = \Yii::app()->assetManager->publish($assetsPath, true, -1, $forceCopyAssets);
            }
        }
        return static::$assetsUrl;
    }
public static function getAssetsUrl ( $ forceCopyAssets = false , $ cdn = false ) { if ( ! isset ( static :: $ assetsUrl ) ) { if ( $ cdn ) { static :: $ assetsUrl = '//cdn.jsdelivr.net/foundation/4.3.1/' ; } else { $ assetsPath = static :: getAssetsPath ( ) ; static :: $ assetsUrl = \ Yii :: app ( ) -> assetManager -> publish ( $ assetsPath , true , - 1 , $ forceCopyAssets ) ; } } return static :: $ assetsUrl ; }
Returns the url to the published assets folder.
@param bool $forceCopyAssets whether to force assets registration or not
@param bool $cdn whether to use CDN version or not
@return string the url.
Returns the url to the published assets folder .