src/View/Helper/AssetHelper.php
public function script($url, array $options = [])
    {
        return $this->Html->script($this->path($url, 'js'), $options);
    }
public function script($url, array $options = [])
    {
        return $this->Html->script($this->path($url, 'js'), $options);
    }
public function script ( $ url , array $ options = [ ] ) { return $ this -> Html -> script ( $ this -> path ( $ url , 'js' ) , $ options ) ; }
Compresses and adds js files to the layout
@param string|array $url String or array of js files
@param array $options Array of options and HTML attributes
@return mixed String of `<script />` tags or null if `$inline` is
false or if `$once` is true
@uses path()
Compresses and adds js files to the layout