public function script($url, $attributes = [], $secure = null)
{
$attributes['src'] = $this->url->asset($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 */ public function script($url, $attributes = array(), $secure = null) { return $this->html->script($this->assetUrl($url), $attributes, $secure); }