src/HtmlHelper.php
public static function css($fileName, $base_path = true)
    {
        if (!is_array($fileName))
            $fileName = array($fileName);
        $data = null;
        foreach ($fileName as $file)
        {
            $url = "";
            $url .= ($base_path) ? self::getCSSLink() : '';
            $url .= $file;
            $data .= '<link rel="stylesheet" type="text/css" href="' . $url . '"/>' . PHP_EOL;
        }
        
        return $data;
    }
public static function css($fileName, $base_path = true)
    {
        if (!is_array($fileName))
            $fileName = array($fileName);
        $data = null;
        foreach ($fileName as $file)
        {
            $url = "";
            $url .= ($base_path) ? self::getCSSLink() : '';
            $url .= $file;
            $data .= '<link rel="stylesheet" type="text/css" href="' . $url . '"/>' . PHP_EOL;
        }
        
        return $data;
    }
public static function css ( $ fileName , $ base_path = true ) { if ( ! is_array ( $ fileName ) ) $ fileName = array ( $ fileName ) ; $ data = null ; foreach ( $ fileName as $ file ) { $ url = "" ; $ url .= ( $ base_path ) ? self :: getCSSLink ( ) : '' ; $ url .= $ file ; $ data .= '<link rel="stylesheet" type="text/css" href="' . $ url . '"/>' . PHP_EOL ; } return $ data ; }
Gera a tag de link
@param array|string $fileName
@param bool $base_path
@return string
Gera a tag de link