src/HtmlHelper.php
public static function js($fileName, $base_path = true)
    {
        if (!is_array($fileName))
            $fileName = array($fileName);
        $data = null;
        foreach ($fileName as $file)
        {
            $data .= '<script src="';
            $data .= ($base_path) ? self::getJSLink() : '';
            $data .= $file . '"></script>' . PHP_EOL;
        }
        return $data;
    }
public static function js($fileName, $base_path = true)
    {
        if (!is_array($fileName))
            $fileName = array($fileName);
        $data = null;
        foreach ($fileName as $file)
        {
            $data .= '<script src="';
            $data .= ($base_path) ? self::getJSLink() : '';
            $data .= $file . '"></script>' . PHP_EOL;
        }
        return $data;
    }
public static function js ( $ fileName , $ base_path = true ) { if ( ! is_array ( $ fileName ) ) $ fileName = array ( $ fileName ) ; $ data = null ; foreach ( $ fileName as $ file ) { $ data .= '<script src="' ; $ data .= ( $ base_path ) ? self :: getJSLink ( ) : '' ; $ data .= $ file . '"></script>' . PHP_EOL ; } return $ data ; }
Gera a tag de script
@param array|string $fileName
@param bool $base_path
@return string
Gera a tag de script