/** * @param $file * @return mixed|string */ protected function scriptUrl($file) { return \TAO::fileUrl($this->fileDirs('scripts'), "{$file}.js"); }
/** * @param $file * @return mixed|string */ public function scriptUrl($file, $extra = false) { $dirs = $this->dirs('scripts'); $url = \TAO::fileUrl($dirs, $file, $extra); return $url; }