/** * adds a script tag to the queue * @param source - string representing the path to the file on the server. * @param globalScope - boolean representing if this is a site script vs a page script. optional. Defaults to global (true). * @throws Exception - if the file located at $source doesn't exist */ public function addScript($source, $globalScope = true) { $currentFile = $this->getFileLocation("{$source}"); if (file_exists($currentFile)) { echo "file exists: {$currentFile}"; } else { echo "couldn't find file: {$currentFile}"; } parent::addScript($source); array_push($this->scriptScope, $globalScope); }