original_string: public function script($path, array $options = [])
      {
          $pathPrefix = Configure::read('App.jsBaseUrl');
          $ext = '.js';
  
          return $this->assetUrl($path, $options + compact('pathPrefix', 'ext'));
      }
code: public function script($path, array $options = [])
      {
          $pathPrefix = Configure::read('App.jsBaseUrl');
          $ext = '.js';
  
          return $this->assetUrl($path, $options + compact('pathPrefix', 'ext'));
      }
code_tokens: public function script ( $ path , array $ options = [ ] ) { $ pathPrefix = Configure :: read ( 'App.jsBaseUrl' ) ; $ ext = '.js' ; return $ this -> assetUrl ( $ path , $ options + compact ( 'pathPrefix' , 'ext' ) ) ; }
docstring: Generates URL for given javascript file.
  
  Depending on options passed provides full URL with domain name. Also calls
  `Helper::assetTimestamp()` to add timestamp to local files.
  
  @param string|array $path Path string or URL array
  @param array $options Options array. Possible keys:
  `fullBase` Return full URL with domain name
  `pathPrefix` Path prefix for relative URLs
  `ext` Asset extension to append
  `plugin` False value will prevent parsing path as a plugin
  `timestamp` Overrides the value of `Asset.timestamp` in Configure.
  Set to false to skip timestamp generation.
  Set to true to apply timestamps when debug is true. Set to 'force' to always
  enable timestamping regardless of debug value.
  @return string Generated URL
docstring_tokens: Generates URL for given javascript file .