helpers/Icon.php
public static function registerIconFontSet($fontName, $forceCopyAssets = false)
    {
        if (!in_array($fontName, static::getAvailableIconFontSets())) {
            return false;
        }

        $fontPath = \Yii::getPathOfAlias('foundation.fonts.foundation_icons_' . $fontName);
        $fontUrl  = \Yii::app()->assetManager->publish($fontPath, true, -1, $forceCopyAssets);

        \Yii::app()->clientScript->registerCssFile($fontUrl . "/stylesheets/{$fontName}_foundicons.css");

        if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) {
            \Yii::app()->clientScript->registerCssFile($fontUrl . "/stylesheets/{$fontName}_foundicons_ie7.css");
        }
    }
public static function registerIconFontSet($fontName, $forceCopyAssets = false)
    {
        if (!in_array($fontName, static::getAvailableIconFontSets())) {
            return false;
        }

        $fontPath = \Yii::getPathOfAlias('foundation.fonts.foundation_icons_' . $fontName);
        $fontUrl  = \Yii::app()->assetManager->publish($fontPath, true, -1, $forceCopyAssets);

        \Yii::app()->clientScript->registerCssFile($fontUrl . "/stylesheets/{$fontName}_foundicons.css");

        if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) {
            \Yii::app()->clientScript->registerCssFile($fontUrl . "/stylesheets/{$fontName}_foundicons_ie7.css");
        }
    }
public static function registerIconFontSet ( $ fontName , $ forceCopyAssets = false ) { if ( ! in_array ( $ fontName , static :: getAvailableIconFontSets ( ) ) ) { return false ; } $ fontPath = \ Yii :: getPathOfAlias ( 'foundation.fonts.foundation_icons_' . $ fontName ) ; $ fontUrl = \ Yii :: app ( ) -> assetManager -> publish ( $ fontPath , true , - 1 , $ forceCopyAssets ) ; \ Yii :: app ( ) -> clientScript -> registerCssFile ( $ fontUrl . "/stylesheets/{$fontName}_foundicons.css" ) ; if ( strpos ( $ _SERVER [ 'HTTP_USER_AGENT' ] , 'MSIE 7.0' ) ) { \ Yii :: app ( ) -> clientScript -> registerCssFile ( $ fontUrl . "/stylesheets/{$fontName}_foundicons_ie7.css" ) ; } }
Registers a specific Icon Set. They are registered individually
@param $fontName
@param $forceCopyAssets
@return bool
Registers a specific Icon Set . They are registered individually