public function script($url, $attributes = [], $secure = null)
    {
        $attributes['src'] = $this->uri->assets($url, $secure);

        return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL);
    }
public function script($url, $attributes = [], $secure = null)
    {
        $attributes['src'] = $this->uri->assets($url, $secure);

        return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL);
    }
public function script ( $ url , $ attributes = [ ] , $ secure = null ) { $ attributes [ 'src' ] = $ this -> uri -> assets ( $ url , $ secure ) ; return $ this -> toHtmlString ( '<script' . $ this -> attributes ( $ attributes ) . '></script>' . PHP_EOL ) ; }
Generate a link to a JavaScript file.

@param string $url
@param array  $attributes
@param bool   $secure

@return string
Generate a link to a JavaScript file .